netcdf-c/cxx4/ncDouble.cpp

23 lines
398 B
C++
Raw Normal View History

2010-06-03 21:25:11 +08:00
#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;
}