39 m_fstream.open((file +
"_cases.csv").c_str());
43 for (
unsigned int i = 0; i < (cases.size() - 1); i++) {
44 m_fstream << cases[i] <<
",";
46 m_fstream << cases[cases.size() - 1] << endl;
CasesFile(const std::string &file="stride_cases")
Constructor: initialize.
Time Dependent Person DataType.
Header for the CasesFile class.
void initialize(const std::string &file)
Generate file name and open the file stream.
void print(const std::vector< unsigned int > &cases)
Print the given cases with corresponding tag.
~CasesFile()
Destructor: close the file stream.