mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
23 lines
386 B
C++
23 lines
386 B
C++
#include "ncFloat.h"
|
|
#include "netcdf.h"
|
|
using namespace netCDF;
|
|
|
|
// create an instance of NcFloat called netCDF::ncFloat
|
|
namespace netCDF {
|
|
NcFloat ncFloat;
|
|
}
|
|
|
|
// constructor
|
|
NcFloat::NcFloat() : NcType(NC_FLOAT){
|
|
}
|
|
|
|
NcFloat::~NcFloat() {
|
|
}
|
|
|
|
|
|
// equivalence operator
|
|
bool NcFloat::operator==(const NcFloat & rhs) {
|
|
// simply check the netCDF id.
|
|
return myId == rhs.myId;
|
|
}
|