35#ifndef H5_NO_NAMESPACE
42,
file_(fileName.c_str(), H5F_ACC_TRUNC)
64 auto binOp = [](
const std::string &a,
const std::string &b)->std::string
70 std::string(
""), binOp));
77 StrType strType(PredType::C_S1, x.size());
97,
file_(fileName.c_str(), readOnly ? H5F_ACC_RDONLY : H5F_ACC_RDWR)
121 auto binOp = [](
const std::string &a,
const std::string &b)->std::string
127 std::string(
""), binOp));
136 attribute =
group_.openAttribute(s);
137 StrType strType = attribute.getStrType();
139 x.resize(strType.getSize());
140 attribute.read(strType, &(x[0]));
unsigned int dataSetThres_
bool push(const std::string &s)
void readSingleAttribute(U &x, const std::string &name, const H5NS::DataType &type)
std::vector< std::string > path_
void readDefault(const std::string &s, U &output)
H5NS::Group & getGroup(void)
Hdf5Reader(const std::string &fileName, const bool readOnly=true)
const unsigned int dataSetThres_
H5NS::Group & getGroup(void)
void writeDefault(const std::string &s, const char *x)
Hdf5Writer(const std::string &fileName)
std::vector< std::string > path_
void writeSingleAttribute(const U &x, const std::string &name, const H5NS::DataType &type)
void push(const std::string &s)