netcdf-cxx4/cxx4/ncFloat.cpp

23 lines
386 B
C++
Raw Normal View History

2011-08-18 02:56:14 +08:00
#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;
}