This commit is contained in:
Jarle Ladstein 2013-12-11 15:46:45 +01:00
parent cf35fe8980
commit 8924333ad3
2 changed files with 3 additions and 5 deletions

View File

@ -15,11 +15,6 @@ NcFile::~NcFile()
ncCheck(nc_close(myId),__FILE__,__LINE__);
}
/*//! The copy constructor.
NcFile::NcFile(const NcGroup& rhs):
NcGroup(rhs) // intialize base class parts
{}*/
// Constructor generates a null object.
NcFile::NcFile() :
NcGroup() // invoke base class constructor

View File

@ -63,6 +63,9 @@ namespace netCDF
virtual ~NcFile(); //closes file and releases all resources
private:
/* Do not allow definition of NcFile involving copying any NcFile or NcGroup.
Because the destructor closes the file and releases al resources such
an action could leave NcFile objects in an invalid state */
NcFile& operator =(const NcGroup & rhs);
NcFile& operator =(const NcFile & rhs);
NcFile(const NcGroup& rhs);