summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CompType.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2002-05-16 22:41:00 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2002-05-16 22:41:00 (GMT)
commit567c04276158059089d64e0e9fd5b9c7e1b8d7ba (patch)
tree2476a14df8ac8ab258d18a4b71caaf4e5d024407 /c++/src/H5CompType.h
parent97a2a55cf4a27e6fc15a43f3ffaba9f90dc42be4 (diff)
downloadhdf5-567c04276158059089d64e0e9fd5b9c7e1b8d7ba.zip
hdf5-567c04276158059089d64e0e9fd5b9c7e1b8d7ba.tar.gz
hdf5-567c04276158059089d64e0e9fd5b9c7e1b8d7ba.tar.bz2
[svn-r5428]
Purpose: New Feature - per library change Description: Added the new member function getMemberIndex to classes EnumType and CompType to match the new C API H5Tget_member_index. Given the name of a member of an enumeration or compound datatype, this new function queries the index of the member. Platforms: SunOS 5.7 (arabica) Linux 6.2 (eirene)
Diffstat (limited to 'c++/src/H5CompType.h')
-rw-r--r--c++/src/H5CompType.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/c++/src/H5CompType.h b/c++/src/H5CompType.h
index bca5722..42cd913 100644
--- a/c++/src/H5CompType.h
+++ b/c++/src/H5CompType.h
@@ -23,6 +23,10 @@ class __DLLCPP__ CompType : public DataType {
// Returns the name of a member of this compound datatype.
string getMemberName( int member_num ) const;
+ // Returns the index of a member in this compound data type.
+ int getMemberIndex(const char* name) const;
+ int getMemberIndex(const string& name) const;
+
// Returns the offset of a member of this compound datatype.
size_t getMemberOffset( int memb_no ) const;