hops
FileWriter.hpp
Go to the documentation of this file.
1 #ifndef HOPS_FILEWRITER_HPP
2 #define HOPS_FILEWRITER_HPP
3 
4 #include <Eigen/Core>
5 #include <string>
6 #include <vector>
7 
8 namespace hops {
9  class FileWriter {
10  public:
11  virtual ~FileWriter() = default;
12 
18  virtual void write(const std::string &description, const std::vector<float> &records) const = 0;
19 
25  virtual void write(const std::string &description, const std::vector<double> &records) const = 0;
26 
32  virtual void write(const std::string &description, const std::vector<long> &records) const = 0;
33 
39  virtual void write(const std::string &description, const std::vector<Eigen::VectorXf> &records) const = 0;
40 
46  virtual void write(const std::string &description, const std::vector<Eigen::VectorXd> &records) const = 0;
47 
53  virtual void write(const std::string &description, const std::vector<std::string> &records) const = 0;
54 
60  virtual void write(const std::string &description, const Eigen::MatrixXd &matrix) const = 0;
61 
67  virtual void write(const std::string &description, const Eigen::VectorXd &vector) const = 0;
68 
69  };
70 }
71 
72 #endif //HOPS_FILEWRITER_HPP
hops::FileWriter::~FileWriter
virtual ~FileWriter()=default
hops::FileWriter::write
virtual void write(const std::string &description, const std::vector< float > &records) const =0
Writes records.
hops::FileWriter
Definition: FileWriter.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