mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-21 03:13:46 +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;
|
|
}
|