mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +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;
|
|
}
|