//-------------------------------------------------------------------------- // 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( unsigned member_num ) const { try { VarLenType varlentype(p_get_member_type(member_num)); return(varlentype); } catch (DataTypeIException E) { throw DataTypeIException("CompType::getMemberVarLenType", E.getDetailMsg()); } }
//-------------------------------------------------------------------------- // 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 { // Gets the id of the datatype used by this dataset or attribute using // p_get_type. p_get_type calls either H5Dget_type or H5Aget_type // depending on which object invokes getVarLenType. Then, create and // return the VarLenType object try { VarLenType varlentype(p_get_type()); return(varlentype); } catch (DataSetIException E) { throw DataTypeIException("DataSet::getVarLenType", E.getDetailMsg()); } catch (AttributeIException E) { throw DataTypeIException("Attribute::getVarLenType", E.getDetailMsg()); } }