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

23 lines
386 B
C++

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