netcdf-c/cxx4/ncUshort.cpp
2010-06-03 13:25:11 +00:00

23 lines
398 B
C++

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