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

23 lines
386 B
C++

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