Stride Reference Manual  1.0
stride::output::PersonFile Class Reference

Produces a file with daily cases count. More...

#include <PersonFile.h>

Collaboration diagram for stride::output::PersonFile:
Collaboration graph

Public Member Functions

 PersonFile (const std::string &file="stride_person")
 Constructor: initialize. More...
 
 ~PersonFile ()
 Destructor: close the file stream. More...
 
void print (const std::shared_ptr< const Population > population)
 Print the given cases with corresponding tag. More...
 

Private Member Functions

void initialize (const std::string &file)
 Generate file name and open the file stream. More...
 

Private Attributes

std::ofstream m_fstream
 The file stream. More...
 

Detailed Description

Produces a file with daily cases count.

Definition at line 35 of file PersonFile.h.

Constructor & Destructor Documentation

stride::output::PersonFile::PersonFile ( const std::string &  file = "stride_person")

Constructor: initialize.

Definition at line 29 of file PersonFile.cpp.

stride::output::PersonFile::~PersonFile ( )

Destructor: close the file stream.

Definition at line 33 of file PersonFile.cpp.

Member Function Documentation

void stride::output::PersonFile::print ( const std::shared_ptr< const Population population)

Print the given cases with corresponding tag.

Definition at line 45 of file PersonFile.cpp.

void stride::output::PersonFile::initialize ( const std::string &  file)
private

Generate file name and open the file stream.

Definition at line 37 of file PersonFile.cpp.

Member Data Documentation

std::ofstream stride::output::PersonFile::m_fstream
private

The file stream.

Definition at line 51 of file PersonFile.h.


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