summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataType.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-12-03 12:21:25 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-12-03 12:21:25 (GMT)
commit5ed48cf279c7cbf46a0107cf9726f8607fc714c4 (patch)
tree71309b6dcb43df4f4e51613a114d04245295103a /c++/src/H5DataType.h
parent25576025eb5261a6bc90dc75ab28f40208ef2fdd (diff)
downloadhdf5-5ed48cf279c7cbf46a0107cf9726f8607fc714c4.zip
hdf5-5ed48cf279c7cbf46a0107cf9726f8607fc714c4.tar.gz
hdf5-5ed48cf279c7cbf46a0107cf9726f8607fc714c4.tar.bz2
[svn-r11755] Purpose: Code improvement
Description: There was a workaround for predefined types, in the C++ library, implemented when the C++ library was handling the reference counting of the object ids on its own. Currently, the C++ library is using the available APIs from the C library for that purpose, and there were bugs reported involving that part of the C++ library. So, I decided to remove the workaround completely. Also, improved the use of std members. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol) Linux 2.4 w/PGI (colonelk)
Diffstat (limited to 'c++/src/H5DataType.h')
-rw-r--r--c++/src/H5DataType.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/c++/src/H5DataType.h b/c++/src/H5DataType.h
index c81950b..10a6906 100644
--- a/c++/src/H5DataType.h
+++ b/c++/src/H5DataType.h
@@ -39,8 +39,8 @@ 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 string& name ) const;
void commit( CommonFG& loc, const char* name ) const;
+ void commit( CommonFG& loc, const string& name ) const;
// Determines whether this datatype is a named datatype or
// a transient datatype.
@@ -70,16 +70,16 @@ class H5_DLLCPP DataType : public H5Object {
DataType getSuper() const;
// Registers a conversion function.
- void registerFunc(H5T_pers_t pers, const string& name, const DataType& dest, H5T_conv_t func ) const;
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;
// Removes a conversion function from all conversion paths.
- void unregister( H5T_pers_t pers, const string& name, const DataType& dest, H5T_conv_t func ) const;
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;
// Tags an opaque datatype.
- void setTag( const string& tag ) const;
void setTag( const char* tag ) const;
+ void setTag( const string& tag ) const;
// Gets the tag associated with an opaque datatype.
string getTag() const;
@@ -104,10 +104,10 @@ 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 string fromClass () const { return("DataType"); }
// Creates a copy of an existing DataType using its id
- DataType( const hid_t type_id, bool predtype = false );
+ DataType( const hid_t type_id );
// Default constructor
DataType();
@@ -115,9 +115,6 @@ class H5_DLLCPP DataType : public H5Object {
// Destructor: properly terminates access to this datatype.
virtual ~DataType();
- protected:
- bool is_predtype; // indicates a type is predefined so
- // H5Tclose will not be called for it
};
#ifndef H5_NO_NAMESPACE
}