summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-07 20:08:59 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-07 20:08:59 (GMT)
commit67a61ed22f31b9af0ace476b0cc58d7236bb9ac3 (patch)
tree3f38c808358221ffbe9232ba1c23ebe439bfdb30 /c++/src/H5CommonFG.h
parent849177c7b6810d2fc4c16092fc3e37a3fee12075 (diff)
downloadhdf5-67a61ed22f31b9af0ace476b0cc58d7236bb9ac3.zip
hdf5-67a61ed22f31b9af0ace476b0cc58d7236bb9ac3.tar.gz
hdf5-67a61ed22f31b9af0ace476b0cc58d7236bb9ac3.tar.bz2
[svn-r24983] 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 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/c++/src/H5CommonFG.h b/c++/src/H5CommonFG.h
index 2f10e8e..8fc0b15 100644
--- a/c++/src/H5CommonFG.h
+++ b/c++/src/H5CommonFG.h
@@ -64,6 +64,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.