diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-07-24 03:36:41 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-07-24 03:36:41 (GMT) |
commit | fe594c5dd8b811f4c843c1816cd584603706c2b2 (patch) | |
tree | c050fa833121f5fac5c79576a892e222a3baab19 /c++/src/H5CommonFG.cpp | |
parent | 89f283e2e47814419e7e6861bfa76f56e27124d2 (diff) | |
download | hdf5-fe594c5dd8b811f4c843c1816cd584603706c2b2.zip hdf5-fe594c5dd8b811f4c843c1816cd584603706c2b2.tar.gz hdf5-fe594c5dd8b811f4c843c1816cd584603706c2b2.tar.bz2 |
[svn-r11147] 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)
AIX 5.1 (copper)
SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/src/H5CommonFG.cpp')
-rw-r--r-- | c++/src/H5CommonFG.cpp | 76 |
1 files changed, 64 insertions, 12 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp index 0b839ba..bd82795 100644 --- a/c++/src/H5CommonFG.cpp +++ b/c++/src/H5CommonFG.cpp @@ -639,30 +639,30 @@ DataType CommonFG::openDataType( const string& name ) const } //-------------------------------------------------------------------------- -// Function: CommonFG::openEnumType -///\brief Opens the named enumeration datatype at this location. -///\param name - IN: Name of the enumeration datatype to open -///\return EnumType instance +// Function: CommonFG::openArrayType +///\brief Opens the named array datatype at this location. +///\param name - IN: Name of the array datatype to open +///\return ArrayType instance ///\exception H5::FileIException or H5::GroupIException // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -EnumType CommonFG::openEnumType( const char* name ) const +ArrayType CommonFG::openArrayType( const char* name ) const { - EnumType enum_type(p_open_data_type(name)); - return(enum_type); -} + ArrayType array_type(p_open_data_type(name)); + return(array_type); +} //-------------------------------------------------------------------------- -// Function: CommonFG::openEnumType +// Function: CommonFG::openArrayType ///\brief This is an overloaded member function, provided for convenience. /// It differs from the above function in that it takes an /// \c std::string for \a name. // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -EnumType CommonFG::openEnumType( const string& name ) const +ArrayType CommonFG::openArrayType( const string& name ) const { - return( openEnumType( name.c_str()) ); -} + return( openArrayType( name.c_str()) ); +} //-------------------------------------------------------------------------- // Function: CommonFG::openCompType @@ -691,6 +691,32 @@ CompType CommonFG::openCompType( const string& name ) const } //-------------------------------------------------------------------------- +// Function: CommonFG::openEnumType +///\brief Opens the named enumeration datatype at this location. +///\param name - IN: Name of the enumeration datatype to open +///\return EnumType instance +///\exception H5::FileIException or H5::GroupIException +// Programmer Binh-Minh Ribler - 2000 +//-------------------------------------------------------------------------- +EnumType CommonFG::openEnumType( const char* name ) const +{ + EnumType enum_type(p_open_data_type(name)); + return(enum_type); +} + +//-------------------------------------------------------------------------- +// Function: CommonFG::openEnumType +///\brief This is an overloaded member function, provided for convenience. +/// It differs from the above function in that it takes an +/// \c std::string for \a name. +// Programmer Binh-Minh Ribler - 2000 +//-------------------------------------------------------------------------- +EnumType CommonFG::openEnumType( const string& name ) const +{ + return( openEnumType( name.c_str()) ); +} + +//-------------------------------------------------------------------------- // Function: CommonFG::openIntType ///\brief Opens the named integer datatype at this location. ///\param name - IN: Name of the integer datatype to open @@ -769,6 +795,32 @@ StrType CommonFG::openStrType( const string& name ) const } //-------------------------------------------------------------------------- +// Function: CommonFG::openVarLenType +///\brief Opens the named variable length datatype at this location. +///\param name - IN: Name of the variable length datatype to open +///\return VarLenType instance +///\exception H5::FileIException or H5::GroupIException +// Programmer Binh-Minh Ribler - 2000 +//-------------------------------------------------------------------------- +VarLenType CommonFG::openVarLenType( const char* name ) const +{ + VarLenType varlen_type(p_open_data_type(name)); + return(varlen_type); +} + +//-------------------------------------------------------------------------- +// Function: CommonFG::openVarLenType +///\brief This is an overloaded member function, provided for convenience. +/// It differs from the above function in that it takes an +/// \c std::string for \a name. +// Programmer Binh-Minh Ribler - 2000 +//-------------------------------------------------------------------------- +VarLenType CommonFG::openVarLenType( const string& name ) const +{ + return( openVarLenType( name.c_str()) ); +} + +//-------------------------------------------------------------------------- // Function: CommonFG::iterateElems ///\brief Iterates a user's function over the entries of a group. ///\param name - IN : Name of group to iterate over |