diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2008-10-27 03:02:39 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2008-10-27 03:02:39 (GMT) |
commit | 992471499289aff68c7eb457e346462cc41a1ee5 (patch) | |
tree | 4ff6c6e0fe6cedc417f17f83daf12cbcd3ec3d82 /c++/src/H5Object.h | |
parent | c16cadef0075a85d838b63e0af9d3fb56a21f8fd (diff) | |
download | hdf5-992471499289aff68c7eb457e346462cc41a1ee5.zip hdf5-992471499289aff68c7eb457e346462cc41a1ee5.tar.gz hdf5-992471499289aff68c7eb457e346462cc41a1ee5.tar.bz2 |
[svn-r15960] Description:
Oops, I accidentally only did "svn commit" instead of "svn commit -m" as
instructed.
"ported revisions 15958 to 15959 (Added missing wrappers for H5Rdereference)
from trunk."
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; |