| H5::EnumType::EnumType | ( | size_t | size | ) |
Creates an empty enumeration datatype given a size, in bytes.
| size | - IN: Number of bytes in the datatype to create |
| H5::DataTypeIException |
| H5::EnumType::EnumType | ( | const DataSet & | dataset | ) |
Gets the enum datatype of the specified dataset.
| dataset | - IN: Dataset that this enum datatype associates with |
| H5::DataTypeIException |
References H5::DataSet::getId().
| H5::EnumType::EnumType | ( | const IntType & | data_type | ) |
Creates a new enum datatype based on an integer datatype.
| data_type | - IN: Base datatype |
| H5::DataTypeIException |
| H5::EnumType::EnumType | ( | const hid_t | existing_id | ) |
Creates an EnumType object using the id of an existing datatype.
| existing_id | - IN: Id of an existing datatype |
| H5::DataTypeIException |
| int H5::EnumType::getMemberIndex | ( | const char * | name | ) | const |
Returns the index of a member in this enumeration datatype.
| name | - IN: Name of the queried member |
N-1, where N is the value returned by the member function EnumType::getNmembers. | H5::DataTypeIException |
Referenced by getMemberIndex().
| void H5::EnumType::getMemberValue | ( | unsigned | memb_no, | |
| void * | value | |||
| ) | const |
Retrieves the value of a member in this enumeration datatype, given the member's index.
| memb_no | - IN: Index of the queried member | |
| value | - OUT: Pointer to the retrieved value |
| H5::DataTypeIException |
| int H5::EnumType::getNmembers | ( | ) | const |
Returns the number of members in this enumeration datatype.
| H5::DataTypeIException |
| void H5::EnumType::insert | ( | const char * | name, | |
| void * | value | |||
| ) | const |
Inserts a new member to this enumeration datatype.
| name | - IN: Name of the new member | |
| value | - IN: Pointer to the value of the new member |
| H5::DataTypeIException |
Referenced by insert().
| H5std_string H5::EnumType::nameOf | ( | void * | value, | |
| size_t | size | |||
| ) | const |
Returns the symbol name corresponding to a specified member of this enumeration datatype.
| value | - IN: Pointer to the value of the enum datatype | |
| size | - IN: Size for the name |
| H5::DataTypeIException |
| void H5::EnumType::valueOf | ( | const char * | name, | |
| void * | value | |||
| ) | const |
Retrieves the value corresponding to a member of this enumeration datatype, given the member's name.
| name | - IN: Name of the queried member | |
| value | - OUT: Pointer to the retrieved value |
| H5::DataTypeIException |
Referenced by valueOf().
1.6.2