Public Member Functions | Protected Member Functions | Private Attributes
hayai::FileOutputter Class Reference

File outputter. More...

#include <hayai_main.hpp>

List of all members.

Public Member Functions

 FileOutputter (const char *path)
 File outputter.
virtual ::hayai::OutputterOutputter ()
 Outputter.
virtual void SetUp ()
 Set up.
virtual ~FileOutputter ()

Protected Member Functions

virtual ::hayai::OutputterCreateOutputter (std::ostream &stream)=0
 Create outputter from output stream.

Private Attributes

::hayai::Outputter_outputter
const char * _path
std::ofstream _stream

Detailed Description

File outputter.

Definition at line 53 of file hayai_main.hpp.


Constructor & Destructor Documentation

hayai::FileOutputter::FileOutputter ( const char *  path) [inline]

File outputter.

Parameters:
pathOutput 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.


Member Function Documentation

virtual ::hayai::Outputter* hayai::FileOutputter::CreateOutputter ( std::ostream &  stream) [protected, pure virtual]

Create outputter from output stream.

Parameters:
streamOutput stream for the outputter.
Returns:
the outputter for the given format.

Outputter.

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.


Member Data Documentation

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.


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


hayai
Author(s): Nick Bruun
autogenerated on Thu Jun 6 2019 18:13:43