File outputter. More...
#include <hayai_main.hpp>
Public Member Functions | |
FileOutputter (const char *path) | |
File outputter. | |
virtual ::hayai::Outputter & | Outputter () |
Outputter. | |
virtual void | SetUp () |
Set up. | |
virtual | ~FileOutputter () |
Protected Member Functions | |
virtual ::hayai::Outputter * | CreateOutputter (std::ostream &stream)=0 |
Create outputter from output stream. | |
Private Attributes | |
::hayai::Outputter * | _outputter |
const char * | _path |
std::ofstream | _stream |
File outputter.
Definition at line 53 of file hayai_main.hpp.
hayai::FileOutputter::FileOutputter | ( | const char * | path | ) | [inline] |
File outputter.
path | Output path. Expected to be available during the life time of the outputter. |
Definition at line 60 of file hayai_main.hpp.
virtual hayai::FileOutputter::~FileOutputter | ( | ) | [inline, virtual] |
Definition at line 68 of file hayai_main.hpp.
virtual ::hayai::Outputter* hayai::FileOutputter::CreateOutputter | ( | std::ostream & | stream | ) | [protected, pure virtual] |
Create outputter from output stream.
stream | Output stream for the outputter. |
virtual ::hayai::Outputter& hayai::FileOutputter::Outputter | ( | ) | [inline] |
Definition at line 102 of file hayai_main.hpp.
virtual void hayai::FileOutputter::SetUp | ( | ) | [inline, virtual] |
Set up.
Opens the output file for writing and initializes the outputter.
Definition at line 82 of file hayai_main.hpp.
::hayai::Outputter* hayai::FileOutputter::_outputter [private] |
Definition at line 120 of file hayai_main.hpp.
const char* hayai::FileOutputter::_path [private] |
Definition at line 118 of file hayai_main.hpp.
std::ofstream hayai::FileOutputter::_stream [private] |
Definition at line 119 of file hayai_main.hpp.