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

Produces a file with daily count of infected persons. More...

#include <InfectedFile.h>

Collaboration diagram for stride::output::InfectedFile:
Collaboration graph

Public Member Functions

 InfectedFile (const std::string &output_dir="output")
 Constructor: initialize. More...
 
 ~InfectedFile ()
 Destructor: close the file stream. More...
 
void Print (const std::vector< unsigned int > &infectionCounts)
 Print the given cases with corresponding tag. More...
 

Private Attributes

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

Detailed Description

Produces a file with daily count of infected persons.

Definition at line 33 of file InfectedFile.h.

Constructor & Destructor Documentation

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

Constructor: initialize.

Definition at line 30 of file InfectedFile.cpp.

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

Here is the call graph for this function:

stride::output::InfectedFile::~InfectedFile ( )

Destructor: close the file stream.

Definition at line 36 of file InfectedFile.cpp.

References m_fstream.

Member Function Documentation

void stride::output::InfectedFile::Print ( const std::vector< unsigned int > &  infectionCounts)

Print the given cases with corresponding tag.

Definition at line 38 of file InfectedFile.cpp.

References m_fstream.

Member Data Documentation

std::ofstream stride::output::InfectedFile::m_fstream
private

The file stream.

Definition at line 46 of file InfectedFile.h.

Referenced by InfectedFile(), Print(), and ~InfectedFile().


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