mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
23 lines
398 B
C++
23 lines
398 B
C++
|
#include "ncDouble.h"
|
||
|
#include "netcdf.h"
|
||
|
using namespace netCDF;
|
||
|
|
||
|
// create an instance of NcDouble called netCDF::ncDouble
|
||
|
namespace netCDF {
|
||
|
NcDouble ncDouble;
|
||
|
}
|
||
|
|
||
|
// constructor
|
||
|
NcDouble::NcDouble() : NcType(NC_DOUBLE){
|
||
|
}
|
||
|
|
||
|
NcDouble::~NcDouble() {
|
||
|
}
|
||
|
|
||
|
|
||
|
// equivalence operator
|
||
|
bool NcDouble::operator==(const NcDouble & rhs) {
|
||
|
// simply check the netCDF id.
|
||
|
return myId == rhs.myId;
|
||
|
}
|