Stride Reference Manual  - generated for commit 9643b11
stride::output::PersonsFile Class Reference

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

#include <PersonsFile.h>

Collaboration diagram for stride::output::PersonsFile:
Collaboration graph

Public Member Functions

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

Private Member Functions

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

Private Attributes

std::ofstream m_fstream
 

Detailed Description

Produces a file with daily cases count.

Definition at line 36 of file PersonsFile.h.

Constructor & Destructor Documentation

stride::output::PersonsFile::PersonsFile ( const std::string &  output_dir = "output")
explicit

Constructor: initialize.

Definition at line 32 of file PersonsFile.cpp.

References Initialize().

Here is the call graph for this function:

stride::output::PersonsFile::~PersonsFile ( )

Destructor: close the file stream.

Definition at line 34 of file PersonsFile.cpp.

References m_fstream.

Member Function Documentation

void stride::output::PersonsFile::Print ( std::shared_ptr< const Population population)

Print the given cases with corresponding tag.

Definition at line 45 of file PersonsFile.cpp.

References m_fstream.

void stride::output::PersonsFile::Initialize ( const std::string &  output_dir)
private

Generate file name and open the file stream.

Definition at line 36 of file PersonsFile.cpp.

References stride::util::FileSys::BuildPath(), and m_fstream.

Referenced by PersonsFile().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::ofstream stride::output::PersonsFile::m_fstream
private

Definition at line 53 of file PersonsFile.h.

Referenced by Initialize(), Print(), and ~PersonsFile().


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