Pol  Revision:cb584c9
Pol::Clib::OFStreamWriter Class Reference

#include <streamsaver.h>

+ Inheritance diagram for Pol::Clib::OFStreamWriter:

Public Member Functions

 OFStreamWriter ()
 ofstream implementation (simple non threaded) More...
 OFStreamWriter (std::ofstream *stream)
virtual ~OFStreamWriter ()
virtual void flush () POL_OVERRIDE
virtual void flush_file () POL_OVERRIDE
virtual void init (const std::string &filepath) POL_OVERRIDE
- Public Member Functions inherited from Pol::Clib::StreamWriter
 StreamWriter ()
 BaseClass implements only writer operator logic. More...
virtual ~StreamWriter ()
fmt::Writer & operator() ()

Private Attributes

std::ofstream * _stream
std::string _stream_name

Additional Inherited Members

- Protected Attributes inherited from Pol::Clib::StreamWriter
std::unique_ptr< fmt::Writer > _writer

Detailed Description

Definition at line 45 of file streamsaver.h.

Constructor & Destructor Documentation

Pol::Clib::OFStreamWriter::OFStreamWriter ( )

ofstream implementation (simple non threaded)

Definition at line 28 of file streamsaver.cpp.

Pol::Clib::OFStreamWriter::OFStreamWriter ( std::ofstream *  stream)

Definition at line 38 of file streamsaver.cpp.

Pol::Clib::OFStreamWriter::~OFStreamWriter ( )

Member Function Documentation

void Pol::Clib::OFStreamWriter::flush ( )
void Pol::Clib::OFStreamWriter::flush_file ( )

Implements Pol::Clib::StreamWriter.

Definition at line 86 of file streamsaver.cpp.

References _stream, and flush().

Referenced by Pol::Core::SaveContext::~SaveContext().

void Pol::Clib::OFStreamWriter::init ( const std::string &  filepath)

Member Data Documentation

std::ofstream* Pol::Clib::OFStreamWriter::_stream

Definition at line 56 of file streamsaver.h.

Referenced by flush(), flush_file(), init(), and ~OFStreamWriter().

std::string Pol::Clib::OFStreamWriter::_stream_name

Definition at line 60 of file streamsaver.h.

Referenced by init(), and ~OFStreamWriter().

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