18 const std::string
FILE_NAME(
"select_partial_string.h5");
31 std::vector<std::string>
values = {
32 "Cat",
"Dog",
"Hello",
"Tree",
"World",
"Plane",
33 ", ",
"你好",
"Tea",
"Moon",
"صباح جميل",
"Spaceship",
41 dataset.
write(values);
48 std::vector<std::string> result;
53 for (
auto i : result) {
54 std::cout << i <<
" ";
61 std::cerr << err.
what() << std::endl;
const std::string DATASET_NAME("message")
void read(T &array) const
static DataSpace From(const ScalarValue &scalar_value)
const std::string FILE_NAME("select_partial_string.h5")
void write(const T &buffer)
static const int ReadWrite
Open flag: Read Write access.
static const int Truncate
Open flag: Truncate a file if already existing.
DataSet getDataSet(const std::string &dataset_name, const DataSetAccessProps &accessProps=DataSetAccessProps()) const
get an existing dataset in the current file
const char * what() const override
get the current exception error message
Selection select(const std::vector< size_t > &offset, const std::vector< size_t > &count, const std::vector< size_t > &stride=std::vector< size_t >()) const
Basic HighFive Exception class.
DataSet createDataSet(const std::string &dataset_name, const DataSpace &space, const DataType &type, const DataSetCreateProps &createProps=DataSetCreateProps(), const DataSetAccessProps &accessProps=DataSetAccessProps())
createDataSet Create a new dataset in the current file of datatype type and of size space ...
static const int Create
Open flag: Create non existing file.