diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 02:47:07 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 02:47:07 (GMT) |
commit | f61bc97180e88c6081c7cc9a420b7e9540bfd1a0 (patch) | |
tree | 272d6803208c796132836d4fb22cebfa09f8da88 /c++/src/H5Object.h | |
parent | adff7e81bd0013af6f2e468e1eb0b9622897ab20 (diff) | |
download | hdf5-f61bc97180e88c6081c7cc9a420b7e9540bfd1a0.zip hdf5-f61bc97180e88c6081c7cc9a420b7e9540bfd1a0.tar.gz hdf5-f61bc97180e88c6081c7cc9a420b7e9540bfd1a0.tar.bz2 |
[svn-r25023] Description:
- Added wrappers to H5Object for H5Iget_name() to get object's name
ssize_t getObjName(char *obj_name, size_t buf_size = 0) const;
ssize_t getObjName(H5std_string& obj_name, size_t len = 0) const;
H5std_string getObjName() const;
- Added tests tobject.cpp
- Added to various cleanup_* functions in tests to remove generated files
- Added an overload H5I_type_t getHDFObjType() to get object's type
(merge from trunk-24969)
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu) with gmake
Diffstat (limited to 'c++/src/H5Object.h')
-rw-r--r-- | c++/src/H5Object.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/c++/src/H5Object.h b/c++/src/H5Object.h index 5c2ef98..5576d13 100644 --- a/c++/src/H5Object.h +++ b/c++/src/H5Object.h @@ -33,7 +33,7 @@ // H5Object is H5File is not an HDF5 object, and renaming H5Object // to H5Location will risk breaking user applications. // -BMR - +// Apr 2, 2014: Added wrapper getObjName for H5Iget_name #ifndef H5_NO_NAMESPACE namespace H5 { #endif @@ -50,6 +50,12 @@ class H5_DLLCPP H5Object : public H5Location { // Copy constructor: makes copy of an H5Object object. H5Object(const H5Object& original); + // Gets the name of this HDF5 object, i.e., Group, DataSet, or + // DataType. + ssize_t getObjName(char *obj_name, size_t buf_size = 0) const; + ssize_t getObjName(H5std_string& obj_name, size_t len = 0) const; + H5std_string getObjName() const; + // Noop destructor. virtual ~H5Object(); |