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

23 lines
374 B
C++

#include "ncUint.h"
#include "netcdf.h"
using namespace netCDF;
// create an instance of NcUint called netCDF::ncUint
namespace netCDF {
NcUint ncUint;
}
// constructor
NcUint::NcUint() : NcType(NC_UINT){
}
NcUint::~NcUint() {
}
// equivalence operator
bool NcUint::operator==(const NcUint & rhs) {
// simply check the netCDF id.
return myId == rhs.myId;
}