diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-03-30 18:06:58 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-03-30 18:06:58 (GMT) |
commit | a7e993d72be8fed2f0d63a8169e185bb2a298842 (patch) | |
tree | 420d7ea5ab1fd6415710f5f623f9667721f3f78e /c++/src/H5DataType.h | |
parent | 5a90c6b31c8904a407bb91ee4cc6a7aeecf73bed (diff) | |
download | hdf5-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/H5DataType.h')
-rw-r--r-- | c++/src/H5DataType.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/c++/src/H5DataType.h b/c++/src/H5DataType.h index 10a6906..d3780bc 100644 --- a/c++/src/H5DataType.h +++ b/c++/src/H5DataType.h @@ -40,7 +40,7 @@ class H5_DLLCPP DataType : public H5Object { // Commits a transient datatype to a file; this datatype becomes // a named datatype which can be accessed from the location. void commit( CommonFG& loc, const char* name ) const; - void commit( CommonFG& loc, const string& name ) const; + void commit( CommonFG& loc, const H5_std::string& name ) const; // Determines whether this datatype is a named datatype or // a transient datatype. @@ -71,18 +71,18 @@ class H5_DLLCPP DataType : public H5Object { // Registers a conversion function. void registerFunc(H5T_pers_t pers, const char* name, const DataType& dest, H5T_conv_t func ) const; - void registerFunc(H5T_pers_t pers, const string& name, const DataType& dest, H5T_conv_t func ) const; + void registerFunc(H5T_pers_t pers, const H5_std::string& name, const DataType& dest, H5T_conv_t func ) const; // Removes a conversion function from all conversion paths. void unregister( H5T_pers_t pers, const char* name, const DataType& dest, H5T_conv_t func ) const; - void unregister( H5T_pers_t pers, const string& name, const DataType& dest, H5T_conv_t func ) const; + void unregister( H5T_pers_t pers, const H5_std::string& name, const DataType& dest, H5T_conv_t func ) const; // Tags an opaque datatype. void setTag( const char* tag ) const; - void setTag( const string& tag ) const; + void setTag( const H5_std::string& tag ) const; // Gets the tag associated with an opaque datatype. - string getTag() const; + H5_std::string getTag() const; // Checks whether this datatype contains (or is) a certain type class. bool detectClass(H5T_class_t cls) const; @@ -92,7 +92,7 @@ class H5_DLLCPP DataType : public H5Object { // Creates a reference to a named Hdf5 object in this object. void* Reference(const char* name) const; - void* Reference(const string& name) const; + void* Reference(const H5_std::string& name) const; // Creates a reference to a named Hdf5 object or to a dataset region // in this object. @@ -104,7 +104,7 @@ class H5_DLLCPP DataType : public H5Object { // Retrieves a dataspace with the region pointed to selected. DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const; - virtual string fromClass () const { return("DataType"); } + virtual H5_std::string fromClass () const { return("DataType"); } // Creates a copy of an existing DataType using its id DataType( const hid_t type_id ); |