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