44 #include "InternalErr.h"
61 if (H5Dread(dset_id, H5T_STD_REF_OBJ, H5S_ALL, H5S_ALL, H5P_DEFAULT,
63 throw InternalErr(__FILE__, __LINE__,
"H5Dread() failed.");
66 hid_t did_r = H5Rdereference(dset_id, H5R_OBJECT, &rbuf);
69 throw InternalErr(__FILE__, __LINE__,
"H5Rdereference() failed.");
72 throw InternalErr(__FILE__, __LINE__,
"Unable to retrieve the name of the object.");
74 string reference = name;
78 if (H5Tclose(ty_id) < 0) {
79 throw InternalErr(__FILE__, __LINE__,
"Unable to close the datatype.");
81 if (H5Dclose(dset_id) < 0) {
82 throw InternalErr(__FILE__, __LINE__,
"Unable to close the dset.");
This class generates DAP URL type for the default option.
void set_tid(hid_t type)
remembers HDF5 datatype id.
virtual BaseType * ptr_duplicate()
Clone this instance.
hid_t get_tid()
returns HDF5 datatype id.
#define DODS_NAMELEN
Maximum length of variable or attribute name(default option only).
HDF5Url(const string &n, const string &d)
Constructor.
virtual bool read()
Reads HDF5 reference data into local buffer as a string.
void set_did(hid_t dset)
remembers HDF5 dataset id.
hid_t get_did()
returns HDF5 dataset id.