[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)
This commit is contained in:
Binh-Minh Ribler
2005-07-24 12:52:43 -05:00
parent 3cba75f060
commit f208550696
8 changed files with 179 additions and 41 deletions

View File

@@ -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);
}
//--------------------------------------------------------------------------
@@ -123,6 +123,20 @@ CompType AbstractDs::getCompType() const
return(comptype);
}
//--------------------------------------------------------------------------
// 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
@@ -165,6 +179,20 @@ StrType AbstractDs::getStrType() const
return(strtype);
}
//--------------------------------------------------------------------------
// 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.