19 std::vector<std::vector<double>> m_file_content;
20 std::vector<std::string> m_snapshot_fields;
21 double m_snapshot_time{0.0};
22 bool m_allow_missing_values{
false};
23 bool m_is_snapshot_file{
false};
26 void parseFile(
const std::string&
filename);
29 void checkSnapshotTime(
const std::string&
time);
39 const std::vector<std::vector<double>>&
getCsvContents()
const {
return m_file_content; }
42 std::vector<std::string>&
key_list,
double& elapsed_time)
46 elapsed_time = m_snapshot_time;
Concrete implementation of a matrix class representing a Compressed Sparse Rows (CSR) matrix....
Definition CsrMatrix.h:37
This class parses csv files. Parses the files as a vector of vectors of type double where each row in...
Definition CsvParser.h:17
const std::vector< std::vector< double > > & getCsvContents() const
Definition CsvParser.h:39
std::string trim(const std::string &str)
void getSnapshotContents(std::vector< std::vector< double > > &field_values, std::vector< std::string > &key_list, double &elapsed_time)
Definition CsvParser.h:41