10 #include <boost/filesystem.hpp> 11 #include <boost/optional.hpp> 31 const std::string datasetName,
32 std::vector<size_t>& dim,
33 boost::shared_array<T>& data);
38 const std::string datasetName,
40 boost::shared_array<T>& data);
45 const std::string& datasetName,
46 std::vector<size_t>& dim);
51 const std::string& datasetName);
53 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
55 std::string datasetName,
56 const Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>& mat);
58 template<
typename MatrixT>
66 const std::string& groupName,
72 bool exist(std::shared_ptr<HighFive::File> hdf5_file,
const std::string& groupName);
77 std::shared_ptr<HighFive::File>
open(
const std::string&
filename);
81 std::string datasetName,
94 #include "Hdf5Util.tcc" void addMatrix(HighFive::Group &group, std::string datasetName, const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &mat)
std::vector< size_t > getDimensions(const HighFive::Group &g, const std::string &datasetName)
boost::shared_array< T > getArray(const HighFive::Group &g, const std::string &datasetName, std::vector< size_t > &dim)
void setAttribute(HighFive::Group &g, const std::string &attr_name, T &data)
boost::optional< MatrixT > getMatrix(const HighFive::Group &g, const std::string &datasetName)
void writeBaseStructure(std::shared_ptr< HighFive::File > hdf5_file)
std::unique_ptr< HighFive::DataSet > createDataset(HighFive::Group &g, std::string datasetName, const HighFive::DataSpace &dataSpace, const HighFive::DataSetCreateProps &properties)
std::shared_ptr< HighFive::File > open(const std::string &filename)
HighFive::Group getGroup(std::shared_ptr< HighFive::File > hdf5_file, const std::string &groupName, bool create=true)
void addArray(HighFive::Group &g, const std::string datasetName, std::vector< size_t > &dim, boost::shared_array< T > &data)
bool exist(std::shared_ptr< HighFive::File > hdf5_file, const std::string &groupName)
std::vector< std::string > splitGroupNames(const std::string &groupName)