diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-12-05 20:23:12 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-12-05 20:23:12 (GMT) |
commit | 11d013f8ccd95d7a5511260fad585ea6a039eac4 (patch) | |
tree | da7c8eff13f9d09d1a96456da8935d346920df66 /c++/src/H5CommonFG.cpp | |
parent | e969226fc701d06fc3e6e4b312c6bd77395b76d3 (diff) | |
download | hdf5-11d013f8ccd95d7a5511260fad585ea6a039eac4.zip hdf5-11d013f8ccd95d7a5511260fad585ea6a039eac4.tar.gz hdf5-11d013f8ccd95d7a5511260fad585ea6a039eac4.tar.bz2 |
[svn-r11762] Purpose: Adding more wrappers
Description:
Added member function H5File::openFile and overloaded for convenience.
Added overloaded getObjinfo to skip the middle parameter.
Changed
StrType(const size_t& size);
to
StrType(const int dummy, const size_t& size);
because the first one clashed with
StrType(const hid_t existing_id);
Platforms tested:
Linux 2.4 (heping)
SunOS 5.8 64-bit (sol)
HPUX 11.00 (kelgia)
Diffstat (limited to 'c++/src/H5CommonFG.cpp')
-rw-r--r-- | c++/src/H5CommonFG.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp index 836d7b4..fb801e9 100644 --- a/c++/src/H5CommonFG.cpp +++ b/c++/src/H5CommonFG.cpp @@ -351,6 +351,34 @@ void CommonFG::getObjinfo( const string& name, hbool_t follow_link, H5G_stat_t& } //-------------------------------------------------------------------------- +// Function: CommonFG::getObjinfo +///\brief This is an overloaded member function, provided for convenience. +/// It differs from the above functions in that it doesn't have +/// the paramemter \a follow_link. +// Programmer Binh-Minh Ribler - Nov, 2005 +//-------------------------------------------------------------------------- +void CommonFG::getObjinfo( const char* name, H5G_stat_t& statbuf ) const +{ + herr_t ret_value = H5Gget_objinfo( getLocId(), name, 0, &statbuf ); + if( ret_value < 0 ) + { + throwException("getObjinfo", "H5Gget_objinfo failed"); + } +} + +//-------------------------------------------------------------------------- +// Function: CommonFG::getObjinfo +///\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 - Nov, 2005 +//-------------------------------------------------------------------------- +void CommonFG::getObjinfo( const string& name, H5G_stat_t& statbuf ) const +{ + getObjinfo( name.c_str(), statbuf ); +} + +//-------------------------------------------------------------------------- // Function: CommonFG::getLinkval ///\brief Returns the name of the object that the symbolic link points to. ///\param name - IN: Symbolic link to the object |