BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ ofstream() [1/2]

fc::ofstream::ofstream ( )

Definition at line 25 of file fstream.cpp.

◆ ofstream() [2/2]

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.

◆ ~ofstream()

fc::ofstream::~ofstream ( )

Definition at line 30 of file fstream.cpp.

Member Function Documentation

◆ close()

void fc::ofstream::close ( )
virtual

Implements fc::ostream.

Definition at line 48 of file fstream.cpp.

◆ flush()

void fc::ofstream::flush ( )
virtual

Implements fc::ostream.

Definition at line 51 of file fstream.cpp.

◆ open()

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.

◆ put()

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

Definition at line 45 of file fstream.cpp.

◆ writesome() [1/2]

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

Implements fc::ostream.

Definition at line 36 of file fstream.cpp.

◆ writesome() [2/2]

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: