NetCDF-C++
4.3.1-developer
NetCDF Documentation
Navigation
Files
Source Files
ncFloat.cpp
1
#include "ncFloat.h"
2
#include "netcdf.h"
3
using namespace
netCDF
;
4
5
// create an instance of NcFloat called netCDF::ncFloat
6
namespace
netCDF
{
7
NcFloat
ncFloat
;
8
}
9
10
// constructor
11
NcFloat::NcFloat
() :
NcType
(NC_FLOAT){
12
}
13
14
NcFloat::~NcFloat
() {
15
}
16
17
18
// equivalence operator
19
bool
NcFloat::operator==
(
const
NcFloat
& rhs) {
20
// simply check the netCDF id.
21
return
myId
== rhs.
myId
;
22
}
netCDF::NcType
Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes.
Definition:
ncType.h:14
netCDF
C++ API for netCDF4.
Definition:
ncAtt.h:9
netCDF::NcFloat::~NcFloat
~NcFloat()
destructor
Definition:
ncFloat.cpp:14
netCDF::NcFloat
Class represents a netCDF atomic Float type.
Definition:
ncFloat.h:10
netCDF::ncFloat
NcFloat ncFloat
A global instance of the NcFloat class within the netCDF namespace.
Definition:
ncFloat.cpp:7
netCDF::NcType::myId
nc_type myId
the type Id
Definition:
ncType.h:149
netCDF::NcFloat::operator==
bool operator==(const NcFloat &rhs)
equivalence operator
Definition:
ncFloat.cpp:19
netCDF::NcFloat::NcFloat
NcFloat()
Constructor.
Definition:
ncFloat.cpp:11
Return to the Main Unidata NetCDF page.
Generated on Fri Nov 11 2016 15:28:29 for NetCDF-C++. NetCDF is a
Unidata
library.