mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
23 lines
398 B
C++
23 lines
398 B
C++
#include "ncUshort.h"
|
|
#include "netcdf.h"
|
|
using namespace netCDF;
|
|
|
|
// create an instance of NcUshort called netCDF::ncUshort
|
|
namespace netCDF {
|
|
NcUshort ncUshort;
|
|
}
|
|
|
|
// constructor
|
|
NcUshort::NcUshort() : NcType(NC_USHORT){
|
|
}
|
|
|
|
NcUshort::~NcUshort() {
|
|
}
|
|
|
|
|
|
// equivalence operator
|
|
bool NcUshort::operator==(const NcUshort & rhs) {
|
|
// simply check the netCDF id.
|
|
return myId == rhs.myId;
|
|
}
|