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

25 lines
424 B
C++

#include "ncByte.h"
#include "netcdf.h"
using namespace netCDF;
// create an instance of NcByte called netCDF::ncByte
namespace netCDF {
NcByte ncByte;
}
// constructor
NcByte::NcByte() : NcType(NC_BYTE){
}
NcByte::~NcByte() {
}
int NcByte::sizeoff(){char a;return sizeof(a);};
// equivalence operator
bool NcByte::operator==(const NcByte & rhs) {
// simply check the netCDF id.
return myId == rhs.myId;
}