Pol  Revision:4b29d2b
Pol::Clib::OStreamWriter Class Reference

#include <streamsaver.h>

+ Inheritance diagram for Pol::Clib::OStreamWriter:

Public Member Functions

 OStreamWriter ()
 ostream implementation (non threaded) More...
 
 OStreamWriter (std::ostream *stream)
 
virtual ~OStreamWriter ()
 
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::ostream * _stream
 

Additional Inherited Members

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

Detailed Description

Definition at line 63 of file streamsaver.h.

Constructor & Destructor Documentation

Pol::Clib::OStreamWriter::OStreamWriter ( )

ostream implementation (non threaded)

Definition at line 93 of file streamsaver.cpp.

Pol::Clib::OStreamWriter::OStreamWriter ( std::ostream *  stream)

Definition at line 95 of file streamsaver.cpp.

Pol::Clib::OStreamWriter::~OStreamWriter ( )
virtual

Definition at line 97 of file streamsaver.cpp.

References _stream, and Pol::Clib::StreamWriter::_writer.

Member Function Documentation

void Pol::Clib::OStreamWriter::flush ( )
virtual

Implements Pol::Clib::StreamWriter.

Definition at line 105 of file streamsaver.cpp.

References _stream, and Pol::Clib::StreamWriter::_writer.

Referenced by flush_file().

void Pol::Clib::OStreamWriter::flush_file ( )
virtual

Implements Pol::Clib::StreamWriter.

Definition at line 114 of file streamsaver.cpp.

References _stream, and flush().

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

Implements Pol::Clib::StreamWriter.

Definition at line 103 of file streamsaver.cpp.

Member Data Documentation

std::ostream* Pol::Clib::OStreamWriter::_stream
private

Definition at line 74 of file streamsaver.h.

Referenced by flush(), flush_file(), and ~OStreamWriter().


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