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

23 lines
362 B
C++

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