BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | List of all members
fc::ofstream Class Reference

#include <fstream.hpp>

Inheritance diagram for fc::ofstream:
fc::ostream

Classes

class  impl
 

Public Member Functions

 ofstream ()
 
 ofstream (const fc::path &file, std::ios_base::openmode m=std::ios_base::out|std::ios_base::binary)
 
 ~ofstream ()
 
void open (const fc::path &file, std::ios_base::openmode m=std::ios_base::out|std::ios_base::binary)
 
size_t writesome (const char *buf, size_t len)
 
size_t writesome (const std::shared_ptr< const char > &buffer, size_t len, size_t offset)
 
void put (char c)
 
void close ()
 
void flush ()
 
- Public Member Functions inherited from fc::ostream
virtual ~ostream ()
 
void put (char c)
 
ostreamwrite (const char *buf, size_t len)
 
ostreamwrite (const std::shared_ptr< const char > &buf, size_t len, size_t offset=0)
 

Detailed Description

Definition at line 9 of file fstream.hpp.

Constructor & Destructor Documentation

fc::ofstream::ofstream ( )

Definition at line 25 of file fstream.cpp.

fc::ofstream::ofstream ( const fc::path file,
std::ios_base::openmode  m = std::ios_base::out | std::ios_base::binary 
)

Definition at line 28 of file fstream.cpp.

fc::ofstream::~ofstream ( )

Definition at line 30 of file fstream.cpp.

Member Function Documentation

void fc::ofstream::close ( )
virtual

Implements fc::ostream.

Definition at line 48 of file fstream.cpp.

void fc::ofstream::flush ( )
virtual

Implements fc::ostream.

Definition at line 51 of file fstream.cpp.

void fc::ofstream::open ( const fc::path file,
std::ios_base::openmode  m = std::ios_base::out | std::ios_base::binary 
)

Definition at line 32 of file fstream.cpp.

void fc::ofstream::put ( char  c)

Definition at line 45 of file fstream.cpp.

size_t fc::ofstream::writesome ( const char *  buf,
size_t  len 
)
virtual

Implements fc::ostream.

Definition at line 36 of file fstream.cpp.

size_t fc::ofstream::writesome ( const std::shared_ptr< const char > &  buffer,
size_t  len,
size_t  offset 
)
virtual

Implements fc::ostream.

Definition at line 40 of file fstream.cpp.


The documentation for this class was generated from the following files: