2
0
mirror of https://github.com/Unidata/netcdf-c.git synced 2025-03-01 17:06:03 +08:00
netcdf-c/cxx4/ncByte.cpp

25 lines
424 B
C++
Raw Normal View History

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