LRAUV  revA
NetCdf Class Reference

Abstract base class for NetCcfReader and NetCdfWriter. More...

#include <NetCdf.h>

Inheritance diagram for NetCdf:
Collaboration diagram for NetCdf:

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 NetCdfDimArraygetDimArray ()
 Returns the dimensions. More...
 
const NetCdfAttsgetGlobalAtts ()
 Returns the global attributes. More...
 
const NetCdfVarsgetVars ()
 Returns the variables. More...
 
NetCdfDimfindDim (const Str &name)
 Finds a dimension by name Returns NULL if error. More...
 
NetCdfAttfindAtt (const Str &name)
 Finds a global attribute by name NetCdfAtt* invalidValue_;. More...
 
NetCdfVarfindVar (const Str &name)
 Finds a variable by name Returns NULL if error. More...
 
NetCdfAttfindAtt (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...
 
NetCdfDimfindDim (NetCdfDims &dims, const Str &name)
 Finds a dimension by name in the set of NetCdfDims Returns NULL if error. More...
 
NetCdfAttfindAtt (NetCdfAtts &atts, const Str &name)
 Finds a global attribute by name in the set of NetCdfAtts Returns NULL if error. More...
 
NetCdfVarfindVar (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_
 

Detailed Description

Abstract base class for NetCcfReader and NetCdfWriter.

Member Typedef Documentation

Constructor & Destructor Documentation

NetCdf::~NetCdf ( )
virtual
NetCdf::NetCdf ( )
protected

Protected constructor.

Protected Constructor.

Member Function Documentation

NetCdf::NetCdfAtt * NetCdf::findAtt ( const Str name)

Finds a global attribute by name NetCdfAtt* invalidValue_;.

Finds a global attribute by name Returns NULL if error.

Returns true if no error.

References gatts_.

Referenced by findAtt().

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().

NetCdf::NetCdfAtt * NetCdf::findAtt ( NetCdfAtts atts,
const Str name 
)
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_.

NetCdf::NetCdfDim * NetCdf::findDim ( NetCdfDims dims,
const Str name 
)
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)
NetCdf::NetCdfVar * NetCdf::findVar ( NetCdfVars vars,
const Str name 
)
protected

Finds a variable by name in the set of NetCdfVars Returns NULL if error.

References FastMap< S, T >::get().

const NetCdfDimArray& NetCdf::getDimArray ( )
inline

Returns the dimensions.

References dimArray_.

Referenced by EnvSimulator::configureSensors().

const NetCdfAtts& NetCdf::getGlobalAtts ( )
inline

Returns the global attributes.

References gatts_.

const NetCdfVars& NetCdf::getVars ( )
inline

Returns the variables.

References vars_.

Member Data Documentation

NetCdfDimArray NetCdf::dimArray_
protected
NetCdfDims NetCdf::dims_
protected
unsigned int NetCdf::NetCdfTypeSize_ = {0, 1, 1, 2, 4, 4, 8 }
static

The documentation for this class was generated from the following files: