hops
CsvReader.hpp
Go to the documentation of this file.
1 #ifndef HOPS_CSVREADER_HPP
2 #define HOPS_CSVREADER_HPP
3 
4 #include <fstream>
5 #include <string>
6 #include <vector>
7 
8 namespace hops {
9  class CsvReader {
10  public:
11  CsvReader() = delete;
12 
13  template<typename VectorType>
14  static VectorType readVector(const std::string &file);
15 
16  template<typename MatrixType>
17  static MatrixType readMatrix(const std::string &file, bool hasColumnAndRowNames = false);
18  };
19 }
20 
21 #endif //HOPS_CSVREADER_HPP
hops::CsvReader::readMatrix
static MatrixType readMatrix(const std::string &file, bool hasColumnAndRowNames=false)
Definition: CsvReader.cpp:45
hops::MatrixType
Eigen::MatrixXd MatrixType
Definition: MatrixType.hpp:7
hops::CsvReader::CsvReader
CsvReader()=delete
hops::CsvReader::readVector
static VectorType readVector(const std::string &file)
Definition: CsvReader.cpp:6
hops::CsvReader
Definition: CsvReader.hpp:9
hops
Definition: CsvReader.hpp:8
string
NAME string(REPLACE ".cpp" "_bin" example_name ${example_filename}) if($
Definition: hops/Third-party/HighFive/src/examples/CMakeLists.txt:6
hops::VectorType
Eigen::VectorXd VectorType
Definition: VectorType.hpp:7