mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
25 lines
424 B
C++
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;
|
|
}
|