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