mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-27 07:49:52 +08:00
Comment
This commit is contained in:
parent
cf35fe8980
commit
8924333ad3
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user