NetCDF-C++  4.3.1-developer
ncChar.cpp
1 #include "ncChar.h"
2 #include "netcdf.h"
3 using namespace netCDF;
4 
5 // create an instance of NcChar called netCDF::ncChar
6 namespace netCDF {
8 }
9 
10 // constructor
11 NcChar::NcChar() : NcType(NC_CHAR){
12 }
13 
14 NcChar::~NcChar() {
15 }
16 
17 
18 // equivalence operator
19 bool NcChar::operator==(const NcChar & rhs) {
20  // simply check the netCDF id.
21  return myId == rhs.myId;
22 }
bool operator==(const NcChar &rhs)
equivalence operator
Definition: ncChar.cpp:19
Class represents a netCDF atomic Char type.
Definition: ncChar.h:10
Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes.
Definition: ncType.h:14
C++ API for netCDF4.
Definition: ncAtt.h:9
NcChar()
Constructor.
Definition: ncChar.cpp:11
NcChar ncChar
A global instance of the NcChar class within the netCDF namespace.
Definition: ncChar.cpp:7
nc_type myId
the type Id
Definition: ncType.h:149

Return to the Main Unidata NetCDF page.
Generated on Fri Nov 11 2016 15:28:29 for NetCDF-C++. NetCDF is a Unidata library.