NetCDF-C++
4.3.1
ncInt64.cpp
1
#include "ncInt64.h"
2
#include "netcdf.h"
3
using namespace
netCDF
;
4
5
// create an instance of NcInt64 called netCDF::ncInt64
6
namespace
netCDF
{
7
NcInt64
ncInt64
;
8
}
9
10
// constructor
11
NcInt64::NcInt64() :
NcType
(NC_INT64){
12
}
13
14
NcInt64::~NcInt64
() {
15
}
16
17
18
// equivalence operator
19
bool
NcInt64::operator==
(
const
NcInt64
& rhs) {
20
// simply check the netCDF id.
21
return
myId
== rhs.
myId
;
22
}
netCDF::NcInt64
Class represents a netCDF atomic Int64 type.
Definition:
ncInt64.h:11
netCDF::NcInt64::operator==
bool operator==(const NcInt64 &rhs)
equivalence operator
Definition:
ncInt64.cpp:19
netCDF::NcInt64::~NcInt64
~NcInt64()
destructor
Definition:
ncInt64.cpp:14
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
C++ API for netCDF4.
Definition:
ncAtt.h:10
netCDF::ncInt64
NcInt64 ncInt64
A global instance of the NcInt64 class within the netCDF namespace.
Definition:
ncInt64.cpp:7
Return to the Main Unidata NetCDF page.
Generated on Wed Nov 10 2021 15:25:08 for NetCDF-C++. NetCDF is a
Unidata
library.