This class parses csv files. Parses the files as a vector of vectors of type double where each row in the file is one vector. It parses ONLY the values and not any text or comments within the file.
More...
|
| | CsvParser (const std::string &filename, char delimiter=',') |
| | Constructor for the CsvParser class. Parses an csv file into a std::vector<std::vector<double>>.
|
| |
| | CsvParser (const std::string &filename, const std::string &filetype, char delimiter=',') |
| | Constructor for the CsvParser class. Parses an csv file into a std::vector<std::vector<double>>. Allows to specify the filetype, currently only option is snapshot or default.
|
| |
| | CsvParser (const std::string &filename, bool allow_missing_values, char delimiter=',') |
| | Constructor for the CsvParser class. Parses an csv file into a std::vector<std::vector<double>>. Allows to specify how to proceed with missing values.
|
| |
| | CsvParser (const std::string &filename, const std::string &filetype, bool allow_missing_values, char delimiter=',') |
| | Constructor for the CsvParser class. Parses an csv file into a std::vector<std::vector<double>>. Allows to specify how to proceed with missing values. Allows to specify the filetype, currently only option is snapshot or default.
|
| |
| const std::vector< std::vector< double > > & | getCsvContents () const |
| |
| void | getSnapshotContents (std::vector< std::vector< double > > &field_values, std::vector< std::string > &key_list, double &elapsed_time) |
| |
| std::string | trim (const std::string &str) |
| |
This class parses csv files. Parses the files as a vector of vectors of type double where each row in the file is one vector. It parses ONLY the values and not any text or comments within the file.