|
Stride Reference Manual
- generated for commit 9643b11
|
Produces a file with simulation summary output. More...
#include <SummaryFile.h>

Public Member Functions | |
| SummaryFile (const std::string &output_prefix="output") | |
| Constructor: initialize. More... | |
| ~SummaryFile () | |
| Destructor: close the file stream. More... | |
| void | Print (const boost::property_tree::ptree &config_pt, unsigned int population_size, unsigned int num_cases, double transmission_probability, unsigned int run_time, unsigned int total_time) |
| Print the given output 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 |
| The file stream. More... | |
Produces a file with simulation summary output.
Definition at line 33 of file SummaryFile.h.
|
explicit |
Constructor: initialize.
Definition at line 36 of file SummaryFile.cpp.
References Initialize().

| stride::output::SummaryFile::~SummaryFile | ( | ) |
Destructor: close the file stream.
Definition at line 38 of file SummaryFile.cpp.
References m_fstream.
| void stride::output::SummaryFile::Print | ( | const boost::property_tree::ptree & | config_pt, |
| unsigned int | population_size, | ||
| unsigned int | num_cases, | ||
| double | transmission_probability, | ||
| unsigned int | run_time, | ||
| unsigned int | total_time | ||
| ) |
Print the given output with corresponding tag.
Definition at line 54 of file SummaryFile.cpp.
References m_fstream.
|
private |
Generate file name and open the file stream.
Definition at line 40 of file SummaryFile.cpp.
References stride::util::FileSys::BuildPath(), and m_fstream.
Referenced by SummaryFile().


|
private |
The file stream.
Definition at line 51 of file SummaryFile.h.
Referenced by Initialize(), Print(), and ~SummaryFile().