summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CompType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-07-24 17:52:43 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-07-24 17:52:43 (GMT)
commitf208550696646adcc6e59e339745b0433e28f770 (patch)
treecd1c0a8b8283d5fa128d988bb335f85dfa390931 /c++/src/H5CompType.cpp
parent3cba75f060cafc0171e48cc3cc2ef17a20bf82ea (diff)
downloadhdf5-f208550696646adcc6e59e339745b0433e28f770.zip
hdf5-f208550696646adcc6e59e339745b0433e28f770.tar.gz
hdf5-f208550696646adcc6e59e339745b0433e28f770.tar.bz2
[svn-r11149] Purpose: Fix bugzilla #406
Description: Added these missing member functions: AbstractDs::getArrayType AbstractDs::getVarLenType CommonFG::openArrayType CommonFG::openVarLenType CompType::getMemberArrayType CompType::getMemberVarLenType Platforms tested: Linux 2.4 (heping) IRIX64 with -n32 (modi4) Linux 2.4 w/PGI (colonelk)
Diffstat (limited to 'c++/src/H5CompType.cpp')
-rw-r--r--c++/src/H5CompType.cpp40
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.