hops
Hdf5Writer.hpp
Go to the documentation of this file.
1 #ifndef HOPS_HDF5WRITER_HPP
2 #define HOPS_HDF5WRITER_HPP
3 
4 #include "FileWriter.hpp"
5 
6 namespace hops {
10  class Hdf5Writer : public FileWriter {
11  public:
12  explicit Hdf5Writer(std::string path);
13  ~Hdf5Writer() override;
14 
15  void write(const std::string &description, const std::vector<float> &records) const override;
16 
17  void write(const std::string &description, const std::vector<double> &records) const override;
18 
19  void write(const std::string &description, const std::vector<long> &records) const override;
20 
21  void write(const std::string &description, const std::vector<Eigen::VectorXf> &records) const override;
22 
23  void write(const std::string &description, const std::vector<Eigen::VectorXd> &records) const override;
24 
25  void write(const std::string &description, const std::vector<std::string> &records) const override;
26 
27  void write(const std::string &description, const Eigen::MatrixXd &matrix) const override;
28 
29  void write(const std::string &description, const Eigen::VectorXd &vector) const override;
30 
31  private:
32  std::string path;
33  };
34 }
35 
36 #endif //HOPS_HDF5WRITER_HPP
hops::Hdf5Writer::~Hdf5Writer
~Hdf5Writer() override
hops::Hdf5Writer
Warning: This writer can not append to existing datasets.
Definition: Hdf5Writer.hpp:10
hops::Hdf5Writer::write
void write(const std::string &description, const std::vector< float > &records) const override
Writes records.
Definition: Hdf5Writer.cpp:13
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
FileWriter.hpp
hops::Hdf5Writer::Hdf5Writer
Hdf5Writer(std::string path)
Definition: Hdf5Writer.cpp:7