diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-12-28 14:44:01 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-12-28 14:44:01 (GMT) |
commit | cd3bd5576f048ce1ca413921c76dcacf137d2110 (patch) | |
tree | 164e5f59fae1b339018f518560f89cd1c90a584b /c++/src/H5Object.h | |
parent | b00962ac8694b14b74382f77d1cf849b93383fb5 (diff) | |
download | hdf5-cd3bd5576f048ce1ca413921c76dcacf137d2110.zip hdf5-cd3bd5576f048ce1ca413921c76dcacf137d2110.tar.gz hdf5-cd3bd5576f048ce1ca413921c76dcacf137d2110.tar.bz2 |
Purpose: Add new wrappers
Description:
Added wrappers H5Location::exists() for H5Lexists.
Added wrapper H5Object::objVersion() to return the header version
of an HDF5 object.
Added new class LinkAccPropList to be used by H5Location::exists()
Added new exception: ObjHeaderIException for H5Object::objVersion()
Rearranged source files in Makefile.am
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5Object.h')
-rw-r--r-- | c++/src/H5Object.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/c++/src/H5Object.h b/c++/src/H5Object.h index 72a9f50..5ea8937 100644 --- a/c++/src/H5Object.h +++ b/c++/src/H5Object.h @@ -77,6 +77,9 @@ class H5_DLLCPP H5Object : public H5Location { // Iterate user's function over the attributes of this object. int iterateAttrs(attr_operator_t user_op, unsigned* idx = NULL, void* op_data = NULL); + // Returns the object header version of an object + unsigned objVersion() const; + // Determines the number of attributes belong to this object. int getNumAttrs() const; @@ -106,12 +109,12 @@ class H5_DLLCPP H5Object : public H5Location { // Default constructor H5Object(); - // *** Deprecation warning *** - // The following two constructors are no longer appropriate after the - // data member "id" had been moved to the sub-classes. - // The copy constructor is a noop and is removed in 1.8.15 and the - // other will be removed from 1.10 release, and then from 1.8 if its - // removal does not raise any problems in two 1.10 releases. + // *** Deprecation warning *** + // The following two constructors are no longer appropriate after the + // data member "id" had been moved to the sub-classes. + // The copy constructor is a noop and is removed in 1.8.15 and the + // other will be removed from 1.10 release, and then from 1.8 if its + // removal does not raise any problems in two 1.10 releases. // Creates a copy of an existing object giving the object id H5Object( const hid_t object_id ); @@ -119,9 +122,9 @@ class H5_DLLCPP H5Object : public H5Location { // Copy constructor: makes copy of an H5Object object. // H5Object(const H5Object& original); - // Sets the identifier of this object to a new value. - this one - // doesn't increment reference count - virtual void p_setId(const hid_t new_id) = 0; + // Sets the identifier of this object to a new value. - this one + // doesn't increment reference count + virtual void p_setId(const hid_t new_id) = 0; // Noop destructor. virtual ~H5Object(); |