NetCDF-C++
4.3.1-developer
NetCDF Documentation
Navigation
Files
Source Files
ncShort.cpp
1
#include "ncShort.h"
2
#include "netcdf.h"
3
using namespace
netCDF
;
4
5
// create an instance of NcShort called netCDF::ncShort
6
namespace
netCDF
{
7
NcShort
ncShort
;
8
}
9
10
// constructor
11
NcShort::NcShort
() :
NcType
(NC_SHORT){
12
}
13
14
NcShort::~NcShort
() {
15
}
16
17
18
// equivalence operator
19
bool
NcShort::operator==
(
const
NcShort
& rhs) {
20
// simply check the netCDF id.
21
return
myId
== rhs.
myId
;
22
}
netCDF::NcShort::~NcShort
~NcShort()
destructor
Definition:
ncShort.cpp:14
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::NcShort
Class represents a netCDF atomic Short type.
Definition:
ncShort.h:10
netCDF::NcShort::operator==
bool operator==(const NcShort &rhs)
equivalence operator
Definition:
ncShort.cpp:19
netCDF::NcType::myId
nc_type myId
the type Id
Definition:
ncType.h:149
netCDF::ncShort
NcShort ncShort
A global instance of the NcShort class within the netCDF namespace.
Definition:
ncShort.cpp:7
netCDF::NcShort::NcShort
NcShort()
Constructor.
Definition:
ncShort.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.