diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-05-03 15:31:34 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-05-03 15:31:34 (GMT) |
commit | 3f706029f8109e510d3545cea2095d13a12db967 (patch) | |
tree | 1f400fc3180694c89232287f2fdc8465c5998b7d /c++ | |
parent | e694bdf7c4e1d3b96007d8db2d7ffe21e58896c8 (diff) | |
download | hdf5-3f706029f8109e510d3545cea2095d13a12db967.zip hdf5-3f706029f8109e510d3545cea2095d13a12db967.tar.gz hdf5-3f706029f8109e510d3545cea2095d13a12db967.tar.bz2 |
[svn-r5346] Purpose: bug fix
Description:
The default constructor of H5File was missing. It's now added.
Platforms:
SunOS 5.7 (arabica)
Linux 6.2 (eirene)
Diffstat (limited to 'c++')
-rw-r--r-- | c++/src/H5File.cpp | 5 | ||||
-rw-r--r-- | c++/src/H5File.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp index 9a668c4..116ba67 100644 --- a/c++/src/H5File.cpp +++ b/c++/src/H5File.cpp @@ -23,6 +23,9 @@ namespace H5 { #endif +// Default constructor +H5File::H5File() : IdComponent() {} + // Creates or opens an HDF5 file depending on the parameter flags. H5File::H5File( const string& name, unsigned int flags, const FileCreatPropList& create_plist, const FileAccPropList& access_plist ) : IdComponent() { @@ -155,7 +158,7 @@ void H5File::p_close() const herr_t ret_value = H5Fclose( id ); if( ret_value < 0 ) { - throw FileIException(NULL, "H5Fclose failed"); + throw FileIException(0, "H5Fclose failed"); } } diff --git a/c++/src/H5File.h b/c++/src/H5File.h index 8e5d46a..83e2c98 100644 --- a/c++/src/H5File.h +++ b/c++/src/H5File.h @@ -8,7 +8,10 @@ namespace H5 { class __DLLCPP__ H5File : public IdComponent, public CommonFG { public: - // copy constructor: makes a copy of the original H5File object. + // Default constructor + H5File(); + + // Copy constructor H5File(const H5File& original ); // Creates or opens an HDF5 file. |