NetCDF-C++
4.3.2
Toggle main menu visibility
Loading...
Searching...
No Matches
ncDouble.cpp
1
#include "ncDouble.h"
2
#include "netcdf.h"
3
using namespace
netCDF
;
4
5
// create an instance of NcDouble called netCDF::ncDouble
6
namespace
netCDF
{
7
NcDouble
ncDouble
;
8
}
9
10
// constructor
11
NcDouble::NcDouble
() :
NcType
(NC_DOUBLE){
12
}
13
14
NcDouble::~NcDouble
() {
15
}
16
17
18
// equivalence operator
19
bool
NcDouble::operator==
(
const
NcDouble
& rhs) {
20
// simply check the netCDF id.
21
return
myId
== rhs.
myId
;
22
}
netCDF::NcDouble
Class represents a netCDF atomic Double type.
Definition
ncDouble.h:11
netCDF::NcDouble::NcDouble
NcDouble()
Constructor.
Definition
ncDouble.cpp:11
netCDF::NcDouble::operator==
bool operator==(const NcDouble &rhs)
equivalence operator
Definition
ncDouble.cpp:19
netCDF::NcDouble::~NcDouble
~NcDouble()
destructor
Definition
ncDouble.cpp:14
netCDF::NcType::NcType
NcType()
Constructor generates a null object.
Definition
ncType.cpp:43
netCDF::NcType::myId
nc_type myId
the type Id
Definition
ncType.h:152
netCDF
C++ API for netCDF4.
Definition
ncAtt.h:10
netCDF::ncDouble
NcDouble ncDouble
A global instance of the NcDouble class within the netCDF namespace.
Definition
ncDouble.cpp:7
Return to the Main Unidata NetCDF page.
Generated on
for NetCDF-C++. NetCDF is a
Unidata
library.