diff options
Diffstat (limited to 'c++/src/H5CompType.cpp')
-rw-r--r-- | c++/src/H5CompType.cpp | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/c++/src/H5CompType.cpp b/c++/src/H5CompType.cpp index 2991f10..708d273 100644 --- a/c++/src/H5CompType.cpp +++ b/c++/src/H5CompType.cpp @@ -249,7 +249,22 @@ DataType CompType::getMemberDataType( int member_num ) const } //-------------------------------------------------------------------------- -// Function: CompType::getMemberDataType +// Function: CompType::getMemberArrayType +///\brief Returns the array datatype of the specified member in this +/// compound datatype. +///\param member_num - IN: Zero-based index of the member +///\return ArrayType instance +///\exception H5::DataTypeIException +// Programmer Binh-Minh Ribler - Jul, 2005 +//-------------------------------------------------------------------------- +ArrayType CompType::getMemberArrayType( int member_num ) const +{ + ArrayType arraytype(p_get_member_type(member_num)); + return(arraytype); +} + +//-------------------------------------------------------------------------- +// Function: CompType::getMemberEnumType ///\brief Returns the enumeration datatype of the specified member in /// this compound datatype. ///\param member_num - IN: Zero-based index of the member @@ -264,7 +279,7 @@ EnumType CompType::getMemberEnumType( int member_num ) const } //-------------------------------------------------------------------------- -// Function: CompType::getMemberDataType +// Function: CompType::getMemberCompType ///\brief Returns the compound datatype of the specified member in this /// compound datatype. ///\param member_num - IN: Zero-based index of the member @@ -279,7 +294,7 @@ CompType CompType::getMemberCompType( int member_num ) const } //-------------------------------------------------------------------------- -// Function: CompType::getMemberDataType +// Function: CompType::getMemberIntType ///\brief Returns the integer datatype of the specified member in this /// compound datatype. ///\param member_num - IN: Zero-based index of the member @@ -294,7 +309,7 @@ IntType CompType::getMemberIntType( int member_num ) const } //-------------------------------------------------------------------------- -// Function: CompType::getMemberDataType +// Function: CompType::getMemberFloatType ///\brief Returns the floating-point datatype of the specified member /// in this compound datatype. ///\param member_num - IN: Zero-based index of the member @@ -309,7 +324,7 @@ FloatType CompType::getMemberFloatType( int member_num ) const } //-------------------------------------------------------------------------- -// Function: CompType::getMemberDataType +// Function: CompType::getMemberStrType ///\brief Returns the string datatype of the specified member in this /// compound datatype. ///\param member_num - IN: Zero-based index of the member @@ -323,6 +338,21 @@ StrType CompType::getMemberStrType( int member_num ) const return(strtype); } +//-------------------------------------------------------------------------- +// Function: CompType::getMemberVarLenType +///\brief Returns the variable length datatype of the specified member +/// in this compound datatype. +///\param member_num - IN: Zero-based index of the member +///\return VarLenType instance +///\exception H5::DataTypeIException +// Programmer Binh-Minh Ribler - Jul, 2005 +//-------------------------------------------------------------------------- +VarLenType CompType::getMemberVarLenType( int member_num ) const +{ + VarLenType varlentype(p_get_member_type(member_num)); + return(varlentype); +} + /* old style of getMemberType - using overloads; new style above returns the appropriate datatypes but has different named functions. In the old style, a datatype must be passed into the function. |