mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-27 07:49:52 +08:00
23 lines
374 B
C++
23 lines
374 B
C++
#include "ncChar.h"
|
|
#include "netcdf.h"
|
|
using namespace netCDF;
|
|
|
|
// create an instance of NcChar called netCDF::ncChar
|
|
namespace netCDF {
|
|
NcChar ncChar;
|
|
}
|
|
|
|
// constructor
|
|
NcChar::NcChar() : NcType(NC_CHAR){
|
|
}
|
|
|
|
NcChar::~NcChar() {
|
|
}
|
|
|
|
|
|
// equivalence operator
|
|
bool NcChar::operator==(const NcChar & rhs) {
|
|
// simply check the netCDF id.
|
|
return myId == rhs.myId;
|
|
}
|