diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-05-16 22:41:00 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-05-16 22:41:00 (GMT) |
commit | 567c04276158059089d64e0e9fd5b9c7e1b8d7ba (patch) | |
tree | 2476a14df8ac8ab258d18a4b71caaf4e5d024407 /c++/src/H5EnumType.h | |
parent | 97a2a55cf4a27e6fc15a43f3ffaba9f90dc42be4 (diff) | |
download | hdf5-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/H5EnumType.h')
-rw-r--r-- | c++/src/H5EnumType.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c++/src/H5EnumType.h b/c++/src/H5EnumType.h index b003e43..db4bbbb 100644 --- a/c++/src/H5EnumType.h +++ b/c++/src/H5EnumType.h @@ -41,6 +41,10 @@ class __DLLCPP__ EnumType : public DataType { void valueOf( const string& name, void *value ) const; void valueOf( const char* name, void *value ) const; + // Returns the index of a member in this enumeration data type. + int getMemberIndex(const char* name) const; + int getMemberIndex(const string& name) const; + // Returns the value of an enumeration datatype member void getMemberValue( int memb_no, void *value ) const; |