diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 03:34:19 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 03:34:19 (GMT) |
commit | 53a50fa7c8802f7f964ccf082b5fa8646cf61287 (patch) | |
tree | 54421d8dd4c9dce0a663515577c820e9c4385272 /c++/src/H5CommonFG.h | |
parent | 19c485a128e4d860a537a14c91e38bc87dc6db25 (diff) | |
download | hdf5-53a50fa7c8802f7f964ccf082b5fa8646cf61287.zip hdf5-53a50fa7c8802f7f964ccf082b5fa8646cf61287.tar.gz hdf5-53a50fa7c8802f7f964ccf082b5fa8646cf61287.tar.bz2 |
[svn-r25028] Purpose: Fix HDFFV-8367
Description:
- Added wrappers to CommomFG for H5Oget_info_by_name() to get a child
object's type (requested by user)
H5O_type_t childObjType(const H5std_string& objname) const;
H5O_type_t childObjType(const char* objname) const;
H5O_type_t childObjType(hsize_t index, H5_index_t index_type=H5_INDEX_NAME, H5_iter_order_t order=H5_ITER_INC, const char* objname=".") const;
- Added tests to tobject.cpp
(merged from trunk-r24983)
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5CommonFG.h')
-rw-r--r-- | c++/src/H5CommonFG.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/c++/src/H5CommonFG.h b/c++/src/H5CommonFG.h index 3b20f5c..c35a9ff 100644 --- a/c++/src/H5CommonFG.h +++ b/c++/src/H5CommonFG.h @@ -65,6 +65,12 @@ class H5_DLLCPP CommonFG { ssize_t getObjnameByIdx(hsize_t idx, char* name, size_t size) const; ssize_t getObjnameByIdx(hsize_t idx, H5std_string& name, size_t size) const; + // Retrieves the type of an object in this file or group, given the + // object's name + H5O_type_t childObjType(const H5std_string& objname) const; + H5O_type_t childObjType(const char* objname) const; + H5O_type_t childObjType(hsize_t index, H5_index_t index_type=H5_INDEX_NAME, H5_iter_order_t order=H5_ITER_INC, const char* objname=".") const; + #ifndef H5_NO_DEPRECATED_SYMBOLS // Returns the type of an object in this group, given the // object's index. |