|
LRAUV
revA
|
Abstract base class for NetCcfReader and NetCdfWriter. More...
#include <NetCdf.h>


Classes | |
| struct | NetCdfAtt |
| struct | NetCdfDim |
| struct | NetCdfVar |
Public Types | |
| enum | NetCdfType { NC_ABSENT_TYPE = 0, NC_BYTE_TYPE = NC_BYTE, NC_CHAR_TYPE = NC_CHAR, NC_SHORT_TYPE = NC_SHORT, NC_INT_TYPE = NC_INT, NC_FLOAT_TYPE = NC_FLOAT, NC_DOUBLE_TYPE = NC_DOUBLE, NC_UBYTE_TYPE = NC_UBYTE, NC_USHORT_TYPE = NC_USHORT, NC_UINT_TYPE = NC_UINT, NC_INT64_TYPE = NC_INT64, NC_UINT64_TYPE = NC_UINT64, NC_STRING_TYPE = NC_STRING } |
| typedef FastMap< const Str, NetCdfDim * > | NetCdfDims |
| typedef FlexArray< NetCdfDim * > | NetCdfDimArray |
| typedef FastMap< const Str, NetCdfAtt * > | NetCdfAtts |
| typedef FastMap< const Str, NetCdfVar * > | NetCdfVars |
| typedef FlexArray< NetCdfVar * > | NetCdfVarArray |
Public Member Functions | |
| virtual | ~NetCdf () |
| Destructor. More... | |
| const NetCdfDimArray & | getDimArray () |
| Returns the dimensions. More... | |
| const NetCdfAtts & | getGlobalAtts () |
| Returns the global attributes. More... | |
| const NetCdfVars & | getVars () |
| Returns the variables. More... | |
| NetCdfDim * | findDim (const Str &name) |
| Finds a dimension by name Returns NULL if error. More... | |
| NetCdfAtt * | findAtt (const Str &name) |
| Finds a global attribute by name NetCdfAtt* invalidValue_;. More... | |
| NetCdfVar * | findVar (const Str &name) |
| Finds a variable by name Returns NULL if error. More... | |
| NetCdfAtt * | findAtt (NetCdfVar &var, const Str &name) |
| Finds a variable's attribute by name Returns NULL if error. More... | |
| const char * | status () |
Static Public Attributes | |
| static unsigned int | NetCdfTypeSize_ [NC_DOUBLE_TYPE+1] = {0, 1, 1, 2, 4, 4, 8 } |
Protected Member Functions | |
| NetCdf () | |
| Protected constructor. More... | |
| NetCdfDim * | findDim (NetCdfDims &dims, const Str &name) |
| Finds a dimension by name in the set of NetCdfDims Returns NULL if error. More... | |
| NetCdfAtt * | findAtt (NetCdfAtts &atts, const Str &name) |
| Finds a global attribute by name in the set of NetCdfAtts Returns NULL if error. More... | |
| NetCdfVar * | findVar (NetCdfVars &vars, const Str &name) |
| Finds a variable by name in the set of NetCdfVars Returns NULL if error. More... | |
Protected Attributes | |
| int | status_ |
| int | ncId_ |
| NetCdfDimArray | dimArray_ |
| NetCdfDims | dims_ |
| NetCdfAtts | gatts_ |
| NetCdfVarArray | varArray_ |
| NetCdfVars | vars_ |
Abstract base class for NetCcfReader and NetCdfWriter.
| typedef FastMap<const Str, NetCdfAtt*> NetCdf::NetCdfAtts |
| typedef FlexArray<NetCdfDim*> NetCdf::NetCdfDimArray |
| typedef FastMap<const Str, NetCdfDim*> NetCdf::NetCdfDims |
| typedef FlexArray<NetCdfVar*> NetCdf::NetCdfVarArray |
| typedef FastMap<const Str, NetCdfVar*> NetCdf::NetCdfVars |
|
virtual |
Destructor.
References gatts_, ncId_, FastMap< S, T >::popIndexed(), and FastMap< S, T >::size().
|
protected |
Protected constructor.
Protected Constructor.
| NetCdf::NetCdfAtt * NetCdf::findAtt | ( | const Str & | name | ) |
| NetCdf::NetCdfAtt * NetCdf::findAtt | ( | NetCdfVar & | var, |
| const Str & | name | ||
| ) |
Finds a variable's attribute by name Returns NULL if error.
References NetCdf::NetCdfVar::atts_, and findAtt().
|
protected |
Finds a global attribute by name in the set of NetCdfAtts Returns NULL if error.
References FastMap< S, T >::get().
| NetCdf::NetCdfDim * NetCdf::findDim | ( | const Str & | name | ) |
Finds a dimension by name Returns NULL if error.
References dims_.
|
protected |
Finds a dimension by name in the set of NetCdfDims Returns NULL if error.
References FastMap< S, T >::get().
| NetCdf::NetCdfVar * NetCdf::findVar | ( | const Str & | name | ) |
Finds a variable by name Returns NULL if error.
References vars_.
Referenced by NetCdfTableLogWriter::addVar(), NetCdfLogWriter::addVar(), EnvSimulator::configureSensors(), and NetCdfReader_Test::testReadFloatVar2DRange().
|
protected |
Finds a variable by name in the set of NetCdfVars Returns NULL if error.
References FastMap< S, T >::get().
|
inline |
|
inline |
Returns the global attributes.
References gatts_.
|
inline |
Returns the variables.
References vars_.
| const char * NetCdf::status | ( | ) |
References status_.
Referenced by NetCdfWriter::NewNetCdfWriter(), NetCdfWriter::putValue(), NetCdfWriter::setAttValue(), NetCdfWriter::writeRecord(), and NetCdfWriter::writeVarRecord().
|
protected |
Referenced by NetCdfWriter::addDim(), getDimArray(), and NetCdfReader::initialize().
|
protected |
Referenced by NetCdfWriter::addDim(), findDim(), and NetCdfReader::initialize().
|
protected |
Referenced by NetCdfWriter::addGlobalAtt(), findAtt(), getGlobalAtts(), NetCdfReader::initialize(), and ~NetCdf().
|
protected |
Referenced by NetCdfWriter::addDim(), NetCdfWriter::addGroup(), NetCdfWriter::addStaticVar(), NetCdfWriter::addVar(), NetCdfWriter::finalize(), NetCdfWriter::initialize(), NetCdfReader::initialize(), NetCdfWriter::NetCdfWriter(), NetCdfReader::read(), NetCdfReader::readStr(), NetCdfWriter::setAttValue(), NetCdfWriter::writeRecord(), ~NetCdf(), and NetCdfReader::~NetCdfReader().
|
static |
|
protected |
Referenced by NetCdfWriter::addDim(), NetCdfWriter::addStaticVar(), NetCdfWriter::addVar(), NetCdfWriter::finalize(), NetCdfWriter::initialize(), NetCdfReader::initialize(), NetCdfWriter::NetCdfWriter(), NetCdfReader::read(), NetCdfReader::readStr(), NetCdfWriter::setAttValue(), status(), NetCdfWriter::writeRecord(), and NetCdfWriter::writeVarRecord().
|
protected |
|
protected |