60 hid_t file_id = H5Fopen(dataset().c_str(),H5F_ACC_RDONLY,H5P_DEFAULT);
62 throw InternalErr(__FILE__,__LINE__,
"Fail to obtain the HDF5 file ID .");
67 dset_id = H5Dopen2(file_id,var_path.c_str(),H5P_DEFAULT);
69 dset_id = H5Dopen2(file_id,name().c_str(),H5P_DEFAULT);
73 throw InternalErr(__FILE__,__LINE__,
"Fail to obtain the datatype .");
78 if (H5Dread(dset_id, H5T_STD_REF_OBJ, H5S_ALL, H5S_ALL, H5P_DEFAULT,
82 throw InternalErr(__FILE__, __LINE__,
"H5Dread() failed.");
85 hid_t did_r = H5RDEREFERENCE(dset_id, H5R_OBJECT, &rbuf);
90 throw InternalErr(__FILE__, __LINE__,
"H5RDEREFERENCE() failed.");
95 throw InternalErr(__FILE__, __LINE__,
"Unable to retrieve the name of the object.");
97 string reference = r_name;