netcdf-c/cxx4/ncInt.cpp

23 lines
362 B
C++
Raw Normal View History

2010-06-03 21:25:11 +08:00
#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;
}