netcdf-c/cxx4/ncUbyte.cpp

23 lines
386 B
C++
Raw Normal View History

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