mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-12-15 08:39:54 +08:00
23 lines
374 B
C++
23 lines
374 B
C++
#include "ncUint.h"
|
|
#include "netcdf.h"
|
|
using namespace netCDF;
|
|
|
|
// create an instance of NcUint called netCDF::ncUint
|
|
namespace netCDF {
|
|
NcUint ncUint;
|
|
}
|
|
|
|
// constructor
|
|
NcUint::NcUint() : NcType(NC_UINT){
|
|
}
|
|
|
|
NcUint::~NcUint() {
|
|
}
|
|
|
|
|
|
// equivalence operator
|
|
bool NcUint::operator==(const NcUint & rhs) {
|
|
// simply check the netCDF id.
|
|
return myId == rhs.myId;
|
|
}
|