Go to the documentation of this file.
17 const std::string
FILE_NAME(
"read_write_scalar.h5");
29 int perfect_number = 42;
36 dataset.
write(perfect_number);
42 int potentially_perfect_number;
44 dataset.
read(potentially_perfect_number);
46 std::cout <<
"perfect number: " << potentially_perfect_number
51 std::cerr << err.
what() << std::endl;
const std::string DATASET_NAME("single_scalar")
void read(T &array) const
static DataSpace From(const ScalarValue &scalar_value)
void write(const T &buffer)
static const int Create
Open flag: Create non existing file.
const char * what() const override
get the current exception error message
const std::string FILE_NAME("read_write_scalar.h5")
Basic HighFive Exception class.
static const int ReadWrite
Open flag: Read Write access.
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:24