15 #ifndef __H5EnumType_H
16 #define __H5EnumType_H
47 int getNmembers ()
const;
50 int getMemberIndex(
const char* name)
const;
51 int getMemberIndex(
const H5std_string& name)
const;
54 void getMemberValue(
unsigned memb_no,
void *value)
const;
57 void insert(
const char* name,
void *value)
const;
58 void insert(
const H5std_string& name,
void *value)
const;
62 H5std_string nameOf(
void *value,
size_t size)
const;
66 void valueOf(
const char* name,
void *value)
const;
67 void valueOf(
const H5std_string& name,
void *value)
const;
70 virtual H5std_string
fromClass ()
const {
return(
"EnumType"); }
86 #endif // __H5EnumType_H
virtual hid_t getId() const
Get the id of this datatype.
Definition: H5DataType.cpp:898
IntType is a derivative of a DataType and operates on HDF5 integer datatype.
Definition: H5IntType.h:25
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:28
Definition: H5Exception.h:116
int getNmembers() const
Returns the number of members in this enumeration datatype.
Definition: H5EnumType.cpp:302
int getMemberIndex(const char *name) const
Returns the index of a member in this enumeration datatype.
Definition: H5EnumType.cpp:272
EnumType()
Default constructor: Creates a stub datatype.
Definition: H5EnumType.cpp:44
virtual ~EnumType()
Properly terminates access to this enum datatype.
Definition: H5EnumType.cpp:337
virtual DataType * decode() const
Returns an EnumType object via DataType* by decoding the binary object description of this type.
Definition: H5EnumType.cpp:158
void insert(const char *name, void *value) const
Inserts a new member to this enumeration datatype.
Definition: H5EnumType.cpp:180
virtual hid_t getId() const
Get the id of this dataset.
Definition: H5DataSet.cpp:704
void getMemberValue(unsigned memb_no, void *value) const
Retrieves the value of a member in this enumeration datatype, given the member's index.
Definition: H5EnumType.cpp:322
EnumType is a derivative of a DataType and operates on HDF5 enum datatypes.
Definition: H5EnumType.h:25
Definition: H5AbstractDs.cpp:34
void valueOf(const char *name, void *value) const
Retrieves the value corresponding to a member of this enumeration datatype, given the member's name.
Definition: H5EnumType.cpp:240
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:28
H5std_string nameOf(void *value, size_t size) const
Returns the symbol name corresponding to a specified member of this enumeration datatype.
Definition: H5EnumType.cpp:211
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:31
Definition: H5Exception.h:137
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5EnumType.h:70
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
and the Board of Trustees of the University of Illinois
|