NetCDF-C++
4.3.1-developer
NetCDF Documentation
Navigation
Files
Source Files
ncUbyte.cpp
1
#include "ncUbyte.h"
2
#include "netcdf.h"
3
using namespace
netCDF
;
4
5
// create an instance of NcUbyte called netCDF::ncUbyte
6
namespace
netCDF
{
7
NcUbyte
ncUbyte
;
8
}
9
10
// constructor
11
NcUbyte::NcUbyte
() :
NcType
(NC_UBYTE){
12
}
13
14
NcUbyte::~NcUbyte
() {
15
}
16
17
18
// equivalence operator
19
bool
NcUbyte::operator==
(
const
NcUbyte
& 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::NcUbyte::NcUbyte
NcUbyte()
Constructor.
Definition:
ncUbyte.cpp:11
netCDF
C++ API for netCDF4.
Definition:
ncAtt.h:9
netCDF::NcUbyte::operator==
bool operator==(const NcUbyte &rhs)
equivalence operator
Definition:
ncUbyte.cpp:19
netCDF::NcType::myId
nc_type myId
the type Id
Definition:
ncType.h:149
netCDF::NcUbyte::~NcUbyte
~NcUbyte()
destructor
Definition:
ncUbyte.cpp:14
netCDF::NcUbyte
Class represents a netCDF atomic Ubyte type.
Definition:
ncUbyte.h:10
netCDF::ncUbyte
NcUbyte ncUbyte
A global instance of the NcUbyte class within the netCDF namespace.
Definition:
ncUbyte.cpp:7
Return to the Main Unidata NetCDF page.
Generated on Fri Nov 11 2016 15:28:29 for NetCDF-C++. NetCDF is a
Unidata
library.