netcdf-cxx4/cxx4/ncDouble.cpp
Ed Hartnett 965b61a671 new
2011-08-17 18:56:14 +00:00

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;
}