17 const std::string
FILE_NAME(
"create_dataset_example.h5");
29 std::vector<size_t> dims(2);
37 double data[2][6] = {{1.1, 2.2, 3.3, 4.4, 5.5, 6.6},
38 {11.11, 12.12, 13.13, 14.14, 15.15, 16.16}};
45 std::cerr << err.
what() << std::endl;
const std::string FILE_NAME("create_dataset_example.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.
const char * what() const override
get the current exception error message
Basic HighFive Exception class.
const std::string DATASET_NAME("dset")
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.