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