NetCDF-C++
4.3.1
ncUshort.cpp
1
#include "ncUshort.h"
2
#include "netcdf.h"
3
using namespace
netCDF
;
4
5
// create an instance of NcUshort called netCDF::ncUshort
6
namespace
netCDF
{
7
NcUshort
ncUshort;
8
}
9
10
// constructor
11
NcUshort::NcUshort() :
NcType
(NC_USHORT){
12
}
13
14
NcUshort::~NcUshort
() {
15
}
16
17
18
// equivalence operator
19
bool
NcUshort::operator==
(
const
NcUshort
& 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:15
netCDF::NcType::myId
nc_type myId
the type Id
Definition:
ncType.h:149
netCDF::NcUshort
Class represents a netCDF atomic Ushort type.
Definition:
ncUshort.h:11
netCDF::NcUshort::~NcUshort
~NcUshort()
destructor
Definition:
ncUshort.cpp:14
netCDF::NcUshort::operator==
bool operator==(const NcUshort &rhs)
equivalence operator
Definition:
ncUshort.cpp:19
netCDF
C++ API for netCDF4.
Definition:
ncAtt.h:10
Return to the Main Unidata NetCDF page.
Generated on Wed Nov 10 2021 15:25:08 for NetCDF-C++. NetCDF is a
Unidata
library.