diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-04-05 16:23:39 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-04-05 16:23:39 (GMT) |
commit | 6f7076f47b7e00b5172f80e5e08b3a3ab63d8a86 (patch) | |
tree | d1b60d66be0081652d701e946e98d03de3dc44ff /c++/src/H5Object.cpp | |
parent | 12f01d9cd48c8c49b2ad2e5e0d0a0f35e2e598a8 (diff) | |
download | hdf5-6f7076f47b7e00b5172f80e5e08b3a3ab63d8a86.zip hdf5-6f7076f47b7e00b5172f80e5e08b3a3ab63d8a86.tar.gz hdf5-6f7076f47b7e00b5172f80e5e08b3a3ab63d8a86.tar.bz2 |
[svn-r12200] Purpose: Maintenance
Description:
Changed to alias string instead of std, i.e. H5std_string instead
of H5std, because the old way wasn't working when std didn't exist.
Platforms tested:
Linux 2.4 (heping)
SunOS 5.8 64-bit (sol)
HPUX 11.00 (kelgia) - this was the problematic platform but I wasn't
able to test before.
Diffstat (limited to 'c++/src/H5Object.cpp')
-rw-r--r-- | c++/src/H5Object.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c++/src/H5Object.cpp b/c++/src/H5Object.cpp index 54a2ed5..40bed19 100644 --- a/c++/src/H5Object.cpp +++ b/c++/src/H5Object.cpp @@ -36,7 +36,7 @@ namespace H5 { // problem. May be moved to Iterator later. extern "C" herr_t userAttrOpWrpr( hid_t loc_id, const char* attr_name, void* op_data ) { - H5_std::string s_attr_name = H5_std::string( attr_name ); + H5std_string s_attr_name = H5std_string( attr_name ); #ifdef NO_STATIC_CAST UserData4Aiterate* myData = (UserData4Aiterate *) op_data; #else @@ -122,7 +122,7 @@ Attribute H5Object::createAttribute( const char* name, const DataType& data_type /// a reference to an \c std::string for \a name. // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -Attribute H5Object::createAttribute( const H5_std::string& name, const DataType& data_type, const DataSpace& data_space, const PropList& create_plist ) const +Attribute H5Object::createAttribute( const H5std_string& name, const DataType& data_type, const DataSpace& data_space, const PropList& create_plist ) const { return( createAttribute( name.c_str(), data_type, data_space, create_plist )); } @@ -156,7 +156,7 @@ Attribute H5Object::openAttribute( const char* name ) const /// a reference to an \c std::string for \a name. // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -Attribute H5Object::openAttribute( const H5_std::string& name ) const +Attribute H5Object::openAttribute( const H5std_string& name ) const { return( openAttribute( name.c_str()) ); } @@ -263,7 +263,7 @@ void H5Object::removeAttr( const char* name ) const /// a reference to an \c std::string for \a name. // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -void H5Object::removeAttr( const H5_std::string& name ) const +void H5Object::removeAttr( const H5std_string& name ) const { removeAttr( name.c_str() ); } @@ -292,7 +292,7 @@ void H5Object::renameAttr(const char* oldname, const char* newname) const /// a reference to an \c std::string for the names. // Programmer Binh-Minh Ribler - Mar, 2005 //-------------------------------------------------------------------------- -void H5Object::renameAttr(const H5_std::string& oldname, const H5_std::string& newname) const +void H5Object::renameAttr(const H5std_string& oldname, const H5std_string& newname) const { renameAttr (oldname.c_str(), newname.c_str()); } @@ -325,7 +325,7 @@ void H5Object::flush(H5F_scope_t scope ) const ///\exception H5::IdComponentException // Programmer Binh-Minh Ribler - Jul, 2004 //-------------------------------------------------------------------------- -H5_std::string H5Object::getFileName() const +H5std_string H5Object::getFileName() const { try { return(p_get_file_name()); |