mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-27 07:49:52 +08:00
23 lines
386 B
C++
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;
|
|
}
|