netcdf-cxx4/cxx4/ncUshort.cpp
Ed Hartnett 965b61a671 new
2011-08-17 18:56:14 +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;
}