Go to the documentation of this file.
17 const std::string
FILE_NAME(
"create_extensible_dataset_example.h5");
40 double t1[3][1] = {{2.0}, {2.0}, {4.0}};
41 dataset.
select({0, 0}, {3, 1}).write(t1);
47 double t2[1][3] = {{4.0, 8.0, 6.0}};
48 dataset.
select({3, 3}, {1, 3}).write(t2);
51 std::vector<std::vector<double>> result;
59 for (
auto row : result) {
61 std::cout <<
" " << col;
62 std::cout << std::endl;
67 std::cerr << err.
what() << std::endl;
const std::string DATASET_NAME("dset")
static const size_t UNLIMITED
void read(T &array) const
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
static const int Create
Open flag: Create non existing file.
void add(const Property &property)
create an HDF5 DataType from a C++ type
void resize(const std::vector< size_t > &dims)
Change the size of the dataset.
const char * what() const override
get the current exception error message
Basic HighFive Exception class.
static const int ReadWrite
Open flag: Read Write access.
const std::string FILE_NAME("create_extensible_dataset_example.h5")
static const int Truncate
Open flag: Truncate a file if already existing.
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:23