Stride Reference Manual
- generated for commit 9643b11
|
Produces a file with daily cases count. More...
#include <PersonsFile.h>
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 |
Produces a file with daily cases count.
Definition at line 36 of file PersonsFile.h.
|
explicit |
Constructor: initialize.
Definition at line 32 of file PersonsFile.cpp.
References Initialize().
stride::output::PersonsFile::~PersonsFile | ( | ) |
Destructor: close the file stream.
Definition at line 34 of file PersonsFile.cpp.
References m_fstream.
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.
|
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().
|
private |
Definition at line 53 of file PersonsFile.h.
Referenced by Initialize(), Print(), and ~PersonsFile().