8inline herr_t h5l_create_external(
const char* file_name,
11 const char* link_name,
14 herr_t err = H5Lcreate_external(file_name, obj_name, link_loc_id, link_name, lcpl_id, lapl_id);
16 HDF5ErrMapper::ToException<GroupException>(std::string(
"Unable to create external link: "));
22inline herr_t h5l_create_soft(
const char* link_target,
24 const char* link_name,
27 herr_t err = H5Lcreate_soft(link_target, link_loc_id, link_name, lcpl_id, lapl_id);
29 HDF5ErrMapper::ToException<GroupException>(std::string(
"Unable to create soft link: "));
35inline herr_t h5l_create_hard(hid_t cur_loc,
41 herr_t err = H5Lcreate_hard(cur_loc, cur_name, dst_loc, dst_name, lcpl_id, lapl_id);
43 HDF5ErrMapper::ToException<GroupException>(std::string(
"Unable to create hard link: "));
49inline herr_t h5l_get_info(hid_t loc_id,
const char* name, H5L_info_t* linfo, hid_t lapl_id) {
50 herr_t err = H5Lget_info(loc_id, name, linfo, lapl_id);
52 HDF5ErrMapper::ToException<GroupException>(std::string(
"Unable to obtain info for link "));
58inline herr_t h5l_delete(hid_t loc_id,
const char* name, hid_t lapl_id) {
59 herr_t err = H5Ldelete(loc_id, name, lapl_id);
61 HDF5ErrMapper::ToException<GroupException>(std::string(
"Invalid name for unlink() "));
67inline htri_t h5l_exists(hid_t loc_id,
const char* name, hid_t lapl_id) {
68 htri_t tri = H5Lexists(loc_id, name, lapl_id);
70 HDF5ErrMapper::ToException<GroupException>(
"Invalid link for exist()");
78inline htri_t h5l_exists(hid_t loc_id,
const char* name, hid_t lapl_id) {
79 return H5Lexists(loc_id, name, lapl_id);
84inline herr_t h5l_iterate(hid_t grp_id,
86 H5_iter_order_t order,
90 herr_t err = H5Literate(grp_id, idx_type, order, idx, op, op_data);
92 HDF5ErrMapper::ToException<GroupException>(std::string(
"Unable to list objects in group"));
97inline herr_t h5l_move(hid_t src_loc,
100 const char* dst_name,
103 herr_t err = H5Lmove(src_loc, src_name, dst_loc, dst_name, lcpl_id, lapl_id);
106 HDF5ErrMapper::ToException<GroupException>(std::string(
"Unable to move link to \"") +
112inline ssize_t h5l_get_name_by_idx(hid_t loc_id,
113 const char* group_name,
115 H5_iter_order_t order,
121 H5Lget_name_by_idx(loc_id, group_name, idx_type, order, n, name, size, lapl_id);
124 HDF5ErrMapper::ToException<GroupException>(
125 std::string(
"Unable to obtain link name from index."));
Definition assert_compatible_spaces.hpp:15