16 H5::CompType
packed(H5::CompType in) {
19 H5::CompType
out(H5Tcopy(in.getId()));
25 std::cerr <<
"ERROR: an exception was thrown in the destructor of an "
26 "HDF5 file, the output buffer may be corrupted";
27 std::cerr <<
" (error message: " <<
msg <<
")" << std::endl;
32 std::vector<hsize_t> initial{0};
33 initial.insert(initial.end(), extent.begin(), extent.end());
34 std::vector<hsize_t> eventual{H5S_UNLIMITED};
35 eventual.insert(eventual.end(), extent.begin(), extent.end());
36 return H5::DataSpace(eventual.size(), initial.data(), eventual.data());
38 std::vector<hsize_t>
getStriding(std::vector<hsize_t> extent) {
41 for (
size_t iii = extent.size(); iii - 1 != 0; iii--) {
42 extent.at(iii-2) = extent.at(iii-2) * extent.at(iii-1);
47 if (H5Lexists(in_group.getLocId(),
name.c_str(), H5P_DEFAULT)) {
48 throw std::logic_error(
"tried to overwrite '" +
name +
"'");