diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-10-31 16:01:35 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-10-31 16:01:35 (GMT) |
commit | 1398cc0eef0cfcc69835edb5831681a573aadd14 (patch) | |
tree | acad548811604bafb7842c394573647116add890 /c++/src/H5PredType.h | |
parent | 356626bd348bb62193fffa2bfe63f2cc8c319fde (diff) | |
download | hdf5-1398cc0eef0cfcc69835edb5831681a573aadd14.zip hdf5-1398cc0eef0cfcc69835edb5831681a573aadd14.tar.gz hdf5-1398cc0eef0cfcc69835edb5831681a573aadd14.tar.bz2 |
[svn-r4580]
Purpose:
Bug fixing
Description:
+ added operator= to PredType
+ removed 'using namespace std' from H5RefCounter.cpp because it's not
used and leaving it there requires #include some standard header file
+ added 'using namespace std' in H5Exception.cpp
Platforms tested:
SunOS 5.7 (arabica)
Windows 98
Diffstat (limited to 'c++/src/H5PredType.h')
-rw-r--r-- | c++/src/H5PredType.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/c++/src/H5PredType.h b/c++/src/H5PredType.h index 341954a..eabb34a 100644 --- a/c++/src/H5PredType.h +++ b/c++/src/H5PredType.h @@ -19,8 +19,7 @@ class PredType : public AtomType { // Copy constructor - makes copy of the original object PredType( const PredType& original ); -virtual hid_t getId() const; -hid_t getenum() const { return id; } // remove when done + virtual hid_t getId() const; // Declaration of predefined types; their definition is in Predtype.C static const PredType STD_I8BE; @@ -225,6 +224,10 @@ hid_t getenum() const { return id; } // remove when done // Creates a pre-defined type using an HDF5 pre-defined constant PredType( const hid_t predtype_id ); // used by the library only + + // Makes a copy of the predefined type and stores the new + // id in the left hand side object. + DataType& operator=( const PredType& rhs ); }; #ifndef H5_NO_NAMESPACE } |