summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Object.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2006-03-30 18:06:58 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2006-03-30 18:06:58 (GMT)
commita7e993d72be8fed2f0d63a8169e185bb2a298842 (patch)
tree420d7ea5ab1fd6415710f5f623f9667721f3f78e /c++/src/H5Object.h
parent5a90c6b31c8904a407bb91ee4cc6a7aeecf73bed (diff)
downloadhdf5-a7e993d72be8fed2f0d63a8169e185bb2a298842.zip
hdf5-a7e993d72be8fed2f0d63a8169e185bb2a298842.tar.gz
hdf5-a7e993d72be8fed2f0d63a8169e185bb2a298842.tar.bz2
[svn-r12180] Purpose: Maintenance
Description: Added alias H5_std so either the global or std namespace can be used, depending on H5_NO_STD. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol) AIX 5.1 (copper)
Diffstat (limited to 'c++/src/H5Object.h')
-rw-r--r--c++/src/H5Object.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/c++/src/H5Object.h b/c++/src/H5Object.h
index 8dec714..32551fb 100644
--- a/c++/src/H5Object.h
+++ b/c++/src/H5Object.h
@@ -32,7 +32,7 @@ class H5_DLLCPP H5Object; // forward declaration for UserData4Aiterate
// Define the operator function pointer for H5Aiterate().
typedef void (*attr_operator_t)( H5Object& loc/*in*/,
- const string attr_name/*in*/,
+ const H5_std::string attr_name/*in*/,
void *operator_data/*in,out*/);
class UserData4Aiterate { // user data for attribute iteration
@@ -51,11 +51,11 @@ class H5_DLLCPP H5Object : public IdComponent {
// Creates an attribute for a group, dataset, or named datatype.
// PropList is currently not used, so always be default.
Attribute createAttribute( const char* name, const DataType& type, const DataSpace& space, const PropList& create_plist = PropList::DEFAULT ) const;
- Attribute createAttribute( const string& name, const DataType& type, const DataSpace& space, const PropList& create_plist = PropList::DEFAULT ) const;
+ Attribute createAttribute( const H5_std::string& name, const DataType& type, const DataSpace& space, const PropList& create_plist = PropList::DEFAULT ) const;
// Opens an attribute given its name.
Attribute openAttribute( const char* name ) const;
- Attribute openAttribute( const string& name ) const;
+ Attribute openAttribute( const H5_std::string& name ) const;
// Opens an attribute given its index.
Attribute openAttribute( const unsigned int idx ) const;
@@ -64,7 +64,7 @@ class H5_DLLCPP H5Object : public IdComponent {
void flush( H5F_scope_t scope ) const;
// Gets the name of the file, in which this HDF5 object belongs.
- string getFileName() const;
+ H5_std::string getFileName() const;
// Determines the number of attributes attached to this object.
int getNumAttrs() const;
@@ -74,11 +74,11 @@ class H5_DLLCPP H5Object : public IdComponent {
// Removes the named attribute from this object.
void removeAttr( const char* name ) const;
- void removeAttr( const string& name ) const;
+ void removeAttr( const H5_std::string& name ) const;
// Renames the attribute to a new name.
void renameAttr(const char* oldname, const char* newname) const;
- void renameAttr(const string& oldname, const string& newname) const;
+ void renameAttr(const H5_std::string& oldname, const H5_std::string& newname) const;
// Copy constructor: makes copy of an H5Object object.
H5Object(const H5Object& original);