diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2008-10-27 02:30:06 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2008-10-27 02:30:06 (GMT) |
commit | 3677f54877df7df7cdaeff16cee8efce5b9bc98f (patch) | |
tree | 18f62ff1bce03347882f917a75c7e95d8da80d1b /c++/src/H5Object.h | |
parent | ff3481d9577d0d826403bc03c4842f3bd5ed7c0d (diff) | |
download | hdf5-3677f54877df7df7cdaeff16cee8efce5b9bc98f.zip hdf5-3677f54877df7df7cdaeff16cee8efce5b9bc98f.tar.gz hdf5-3677f54877df7df7cdaeff16cee8efce5b9bc98f.tar.bz2 |
[svn-r15959] Description:
Added missing wrappers for H5Rdereference.
Also, for these wrappers, improved exception handlings to report specific
overloaded functions, where failure occurs. Will do the same for more
functions later...
Platforms tested:
Linux 2.6 (kagiso)
SunOS 5.10 (linew)
FreeBSD (duty)
Diffstat (limited to 'c++/src/H5Object.h')
-rw-r--r-- | c++/src/H5Object.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/c++/src/H5Object.h b/c++/src/H5Object.h index 49655a1..4ac417b 100644 --- a/c++/src/H5Object.h +++ b/c++/src/H5Object.h @@ -86,9 +86,11 @@ class H5_DLLCPP H5Object : public IdComponent { void reference(void* ref, const char* name) const; void reference(void* ref, const H5std_string& name) const; - // Open a referenced HDF5 object. - void dereference(H5File& h5file, void* ref); - void dereference(H5Object& obj, void* ref); + // Open a referenced HDF5 object whose location is specified by either + // a file, an HDF5 object, or an attribute. + void dereference(H5File& h5file, const void* ref, H5R_type_t ref_type = H5R_OBJECT); + void dereference(H5Object& obj, const void* ref, H5R_type_t ref_type = H5R_OBJECT); + void dereference(Attribute& attr, const void* ref, H5R_type_t ref_type = H5R_OBJECT); // Copy constructor: makes copy of an H5Object object. H5Object(const H5Object& original); @@ -110,6 +112,9 @@ class H5_DLLCPP H5Object : public IdComponent { // Creates a reference to an HDF5 object or a dataset region. void p_reference(void* ref, const char* name, hid_t space_id, H5R_type_t ref_type) const; + // Dereferences a ref into an hdf5 id. + hid_t p_dereference(hid_t loc_id, const void* ref, H5R_type_t ref_type); + #ifndef H5_NO_DEPRECATED_SYMBOLS // Retrieves the type of object that an object reference points to. H5G_obj_t p_get_obj_type(void *ref, H5R_type_t ref_type) const; |