MI - Fimex
Public Types | Public Member Functions | Static Public Member Functions | List of all members
MetNoFimex::CoordinateAxis Class Reference

#include <fimex/coordSys/CoordinateAxis.h>

Inheritance diagram for MetNoFimex::CoordinateAxis:
MetNoFimex::CDMVariable MetNoFimex::CDMNamedEntity

Public Types

enum  AxisType {
  Undefined = 0, GeoX, GeoY, GeoZ,
  Time, Lon, Lat, Pressure,
  Height, ReferenceTime, Realization
}
 

Public Member Functions

 CoordinateAxis (const CDMVariable &var)
 
virtual ~CoordinateAxis ()
 
bool operator< (const CoordinateAxis &ca)
 
AxisType getAxisType () const
 
std::string getAxisTypeStr () const
 
void setAxisType (AxisType t)
 
bool isAxisType (AxisType t) const
 
bool isExplicit () const
 
void setExplicit (bool isExplicit)
 
- Public Member Functions inherited from MetNoFimex::CDMVariable
 CDMVariable (std::string name, CDMDataType datatype, std::vector< std::string > shape)
 
virtual ~CDMVariable ()
 
const std::stringgetName () const
 
void setName (std::string newName)
 
CDMDataType getDataType () const
 
void setDataType (CDMDataType type)
 
const std::vector< std::string > & getShape () const
 
void setShape (std::vector< std::string > newShape)
 
void setAsSpatialVector (const std::string &counterpart, const std::string &direction)
 
bool isSpatialVector () const
 
const std::stringgetSpatialVectorCounterpart () const
 get the spatial counterpart of this vector More...
 
const std::stringgetSpatialVectorDirection () const
 get the possible directions of this spatial vector (comma-separated string) More...
 
bool checkDimension (const std::string &dimension) const
 
void toXMLStream (std::ostream &out) const
 print a xml representation to the stream without attributes More...
 
void toXMLStream (std::ostream &out, const std::vector< CDMAttribute > &attrs) const
 print a xml representation to the stream with attributes More...
 
void setData (DataPtr data)
 add data to the variable More...
 
const DataPtr getData () const
 retrieve volatile data from this variable More...
 
int hasData () const
 check if real data has been set with setData() (null-pointer reference returns false) More...
 
- Public Member Functions inherited from MetNoFimex::CDMNamedEntity
virtual ~CDMNamedEntity ()=0
 

Static Public Member Functions

static std::string type2string (AxisType type)
 
static AxisType int2type (int type)
 
static int type2int (AxisType type)
 

Member Enumeration Documentation

Enumerator
Undefined 
GeoX 
GeoY 
GeoZ 
Time 
Lon 
Lat 
Pressure 
Height 
ReferenceTime 
Realization 

Constructor & Destructor Documentation

MetNoFimex::CoordinateAxis::CoordinateAxis ( const CDMVariable var)
inlineexplicit
virtual MetNoFimex::CoordinateAxis::~CoordinateAxis ( )
inlinevirtual

Member Function Documentation

AxisType MetNoFimex::CoordinateAxis::getAxisType ( ) const
inline
std::string MetNoFimex::CoordinateAxis::getAxisTypeStr ( ) const
inline

References type2string().

static AxisType MetNoFimex::CoordinateAxis::int2type ( int  type)
inlinestatic
bool MetNoFimex::CoordinateAxis::isAxisType ( AxisType  t) const
inline
bool MetNoFimex::CoordinateAxis::isExplicit ( ) const
inline

Check if this axis is a explicitly netcdf-dimension, too.

Returns
false if this is a implicit 'coordinates' variable, rather than a netcdf-dimension

Referenced by setExplicit().

bool MetNoFimex::CoordinateAxis::operator< ( const CoordinateAxis ca)
inline
void MetNoFimex::CoordinateAxis::setAxisType ( AxisType  t)
inline
void MetNoFimex::CoordinateAxis::setExplicit ( bool  isExplicit)
inline
static int MetNoFimex::CoordinateAxis::type2int ( AxisType  type)
inlinestatic
static std::string MetNoFimex::CoordinateAxis::type2string ( AxisType  type)
inlinestatic

References GeoX, GeoY, GeoZ, Lat, Lon, Realization, ReferenceTime, and Time.

Referenced by getAxisTypeStr().


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