8inline hid_t h5o_open(hid_t loc_id,
const char* name, hid_t lapl_id) {
9 hid_t hid = H5Oopen(loc_id, name, lapl_id);
11 HDF5ErrMapper::ToException<GroupException>(std::string(
"Unable to open \"") + name +
"\":");
17inline herr_t h5o_close(hid_t
id) {
18 herr_t err = H5Oclose(
id);
20 HDF5ErrMapper::ToException<ObjectException>(
"Unable to close object.");
26#if H5O_info_t_vers >= 1
27using h5o_info1_t = H5O_info1_t;
29using h5o_info1_t = H5O_info_t;
32inline herr_t h5o_get_info1(hid_t loc_id, h5o_info1_t* info) {
33#if H5Oget_info_vers >= 1
34 herr_t err = H5Oget_info1(loc_id, info);
36 herr_t err = H5Oget_info(loc_id, info);
40 HDF5ErrMapper::ToException<ObjectException>(
"Unable to obtain info for object");
45#if H5_VERSION_GE(1, 10, 3)
46inline herr_t h5o_get_info2(hid_t loc_id, h5o_info1_t* info,
unsigned fields) {
47 herr_t err = H5Oget_info2(loc_id, info, fields);
49 HDF5ErrMapper::ToException<ObjectException>(
"Unable to obtain info for object");
55#if H5_VERSION_GE(1, 12, 0)
56inline herr_t h5o_get_info3(hid_t loc_id, H5O_info2_t* info,
unsigned fields) {
57 herr_t err = H5Oget_info3(loc_id, info, fields);
59 HDF5ErrMapper::ToException<ObjectException>(
"Unable to obtain info for object");
Definition assert_compatible_spaces.hpp:15