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