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