diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-07-24 17:52:43 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-07-24 17:52:43 (GMT) |
commit | f208550696646adcc6e59e339745b0433e28f770 (patch) | |
tree | cd1c0a8b8283d5fa128d988bb335f85dfa390931 /c++/src/H5AbstractDs.cpp | |
parent | 3cba75f060cafc0171e48cc3cc2ef17a20bf82ea (diff) | |
download | hdf5-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/H5AbstractDs.cpp')
-rw-r--r-- | c++/src/H5AbstractDs.cpp | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/c++/src/H5AbstractDs.cpp b/c++/src/H5AbstractDs.cpp index 33fadc5..9e54d94 100644 --- a/c++/src/H5AbstractDs.cpp +++ b/c++/src/H5AbstractDs.cpp @@ -96,17 +96,17 @@ DataType AbstractDs::getDataType() const } //-------------------------------------------------------------------------- -// Function: AbstractDs::getEnumType -///\brief Returns the enumeration datatype of this abstract dataset which +// Function: AbstractDs::getArrayType +///\brief Returns the compound datatype of this abstract dataset which /// can be a dataset or an attribute. -///\return EnumType instance +///\return ArrayType instance ///\exception H5::DataTypeIException -// Programmer Binh-Minh Ribler - 2000 +// Programmer Binh-Minh Ribler - Jul, 2005 //-------------------------------------------------------------------------- -EnumType AbstractDs::getEnumType() const +ArrayType AbstractDs::getArrayType() const { - EnumType enumtype(p_get_type()); - return(enumtype); + ArrayType arraytype(p_get_type()); + return(arraytype); } //-------------------------------------------------------------------------- @@ -124,6 +124,20 @@ CompType AbstractDs::getCompType() const } //-------------------------------------------------------------------------- +// Function: AbstractDs::getEnumType +///\brief Returns the enumeration datatype of this abstract dataset which +/// can be a dataset or an attribute. +///\return EnumType instance +///\exception H5::DataTypeIException +// Programmer Binh-Minh Ribler - 2000 +//-------------------------------------------------------------------------- +EnumType AbstractDs::getEnumType() const +{ + EnumType enumtype(p_get_type()); + return(enumtype); +} + +//-------------------------------------------------------------------------- // Function: AbstractDs::getIntType ///\brief Returns the integer datatype of this abstract dataset which /// can be a dataset or an attribute. @@ -166,6 +180,20 @@ StrType AbstractDs::getStrType() const } //-------------------------------------------------------------------------- +// Function: AbstractDs::getVarLenType +///\brief Returns the floating-point datatype of this abstract dataset, +/// which can be a dataset or an attribute. +///\return VarLenType instance +///\exception H5::DataTypeIException +// Programmer Binh-Minh Ribler - Jul, 2005 +//-------------------------------------------------------------------------- +VarLenType AbstractDs::getVarLenType() const +{ + VarLenType varlentype(p_get_type()); + return(varlentype); +} + +//-------------------------------------------------------------------------- // Function: AbstractDs destructor ///\brief Noop destructor. // Programmer Binh-Minh Ribler - 2000 |