15 #ifndef __H5CompType_H
16 #define __H5CompType_H
53 H5T_class_t getMemberClass(
unsigned member_num)
const;
56 int getMemberIndex(
const char* name)
const;
57 int getMemberIndex(
const H5std_string& name)
const;
60 size_t getMemberOffset(
unsigned memb_no)
const;
63 H5std_string getMemberName(
unsigned member_num)
const;
67 DataType getMemberDataType(
unsigned member_num)
const;
71 ArrayType getMemberArrayType(
unsigned member_num)
const;
75 CompType getMemberCompType(
unsigned member_num)
const;
79 EnumType getMemberEnumType(
unsigned member_num)
const;
83 IntType getMemberIntType(
unsigned member_num)
const;
87 FloatType getMemberFloatType(
unsigned member_num)
const;
91 StrType getMemberStrType(
unsigned member_num)
const;
95 VarLenType getMemberVarLenType(
unsigned member_num)
const;
98 int getNmembers()
const;
101 void insertMember(
const H5std_string& name,
size_t offset,
const DataType& new_member)
const;
107 void setSize(
size_t size)
const;
110 virtual H5std_string
fromClass ()
const {
return(
"CompType"); }
118 hid_t p_get_member_type(
unsigned member_num)
const;
123 #endif // __H5CompType_H
CompType getMemberCompType(unsigned member_num) const
Returns the compound datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:327
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
virtual DataType * decode() const
Returns a CompType object via DataType* by decoding the binary object description of this datatype.
Definition: H5CompType.cpp:136
void insertMember(const H5std_string &name, size_t offset, const DataType &new_member) const
Inserts a new member to this compound datatype.
Definition: H5CompType.cpp:486
FloatType is a derivative of a DataType and operates on HDF5 floating point datatype.
Definition: H5FloatType.h:25
void pack() const
Recursively removes padding from within a compound datatype.
Definition: H5CompType.cpp:509
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:28
size_t getMemberOffset(unsigned memb_no) const
Returns the byte offset of the beginning of a member with respect to the beginning of the compound da...
Definition: H5CompType.cpp:231
virtual ~CompType()
Properly terminates access to this compound datatype.
Definition: H5CompType.cpp:543
Definition: H5Exception.h:116
void setSize(size_t size) const
Sets the total size for this compound datatype.
Definition: H5CompType.cpp:528
FloatType getMemberFloatType(unsigned member_num) const
Returns the floating-point datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:390
Class ArrayType inherits from DataType and provides wrappers for the HDF5's Array Datatypes.
Definition: H5ArrayType.h:25
virtual hid_t getId() const
Get the id of this dataset.
Definition: H5DataSet.cpp:704
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:256
StrType is a derivative of a DataType and operates on HDF5 string datatype.
Definition: H5StrType.h:25
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5CompType.h:110
H5std_string getMemberName(unsigned member_num) const
Returns the name of a member in this compound datatype.
Definition: H5CompType.cpp:176
IntType getMemberIntType(unsigned member_num) const
Returns the integer datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:369
int getMemberIndex(const char *name) const
Returns the index of a member in this compound datatype.
Definition: H5CompType.cpp:201
EnumType getMemberEnumType(unsigned member_num) const
Returns the enumeration datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:348
int getNmembers() const
Returns the number of members in this compound datatype.
Definition: H5CompType.cpp:157
VarLenType getMemberVarLenType(unsigned member_num) const
Returns the variable length datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:432
VarLenType is a derivative of a DataType and operates on HDF5 Variable-length Datatypes.
Definition: H5VarLenType.h:25
StrType getMemberStrType(unsigned member_num) const
Returns the string datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:411
friend void f_DataType_setId(DataType *dtype, hid_t new_id)
CompType is a derivative of a DataType and operates on HDF5 compound datatypes.
Definition: H5CompType.h:25
EnumType is a derivative of a DataType and operates on HDF5 enum datatypes.
Definition: H5EnumType.h:25
H5T_class_t getMemberClass(unsigned member_num) const
Gets the type class of the specified member.
Definition: H5CompType.cpp:247
Definition: H5AbstractDs.cpp:34
CompType()
Default constructor: Creates a stub compound datatype.
Definition: H5CompType.cpp:40
ArrayType getMemberArrayType(unsigned member_num) const
Returns the array datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:306
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:28
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:31
DataType getMemberDataType(unsigned member_num) const
Returns the generic datatype of the specified member in this compound datatype.
Definition: H5CompType.cpp:285
Definition: H5Exception.h:137
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
and the Board of Trustees of the University of Illinois
|