MetNoFimex::CDMReader Class Reference

Basic interface for CDM reading and manipulation classes. More...

#include <CDMReader.h>

Inheritance diagram for MetNoFimex::CDMReader:

MetNoFimex::CDMExtractor MetNoFimex::CDMInterpolator MetNoFimex::FeltCDMReader MetNoFimex::NetCDF_CF10_CDMReader List of all members.

Public Member Functions

 CDMReader ()
virtual ~CDMReader ()
virtual const CDMgetCDM () const
virtual const boost::shared_ptr<
Data
getDataSlice (const std::string &varName, size_t unLimDimPos=0)=0 throw (CDMException)
 data-reading function to be called from the CDMWriter
virtual const boost::shared_ptr<
Data
getDataFromMemory (const CDMVariable &variable, size_t unLimDimPos=0) throw (CDMException)

Protected Attributes

CDM cdm

Detailed Description

Basic interface for CDM reading and manipulation classes.

The CDMReader is the basic interface for reading and manipulation of the cdm datastructure. The CDMWriter will work with an implementation of the CDMReader and read the included data in the cdm or the data provided through the implementation of the CDMReader#getDataSlice

See also:
FeltCDMReader


Constructor & Destructor Documentation

MetNoFimex::CDMReader::CDMReader  )  [inline]
 

virtual MetNoFimex::CDMReader::~CDMReader  )  [inline, virtual]
 


Member Function Documentation

virtual const CDM& MetNoFimex::CDMReader::getCDM  )  const [inline, virtual]
 

Reimplemented in MetNoFimex::FeltCDMReader.

const boost::shared_ptr< Data > MetNoFimex::CDMReader::getDataFromMemory const CDMVariable variable,
size_t  unLimDimPos = 0
throw (CDMException) [virtual]
 

Read the data from the variable.hasData() and select the correct unLimDimPos. This function should be used internally from getDataSlice.

Parameters:
variable the variable to read data from
unLimDimPos (optional) the unlimited position

virtual const boost::shared_ptr<Data> MetNoFimex::CDMReader::getDataSlice const std::string varName,
size_t  unLimDimPos = 0
throw (CDMException) [pure virtual]
 

data-reading function to be called from the CDMWriter

This function needs to be implemented by the CDMReader. It should provide the data for each variable, either by reading from disk, converting from another CDMReader or reading from an in-memory data-section.

Parameters:
varName name of the variable to read
unLimDimPos (optional) if the variable contains a unlimited dimension (max one allowed) an slice of this position is returned

Implemented in MetNoFimex::CDMExtractor, MetNoFimex::CDMInterpolator, MetNoFimex::FeltCDMReader, and MetNoFimex::NetCDF_CF10_CDMReader.


Member Data Documentation

CDM MetNoFimex::CDMReader::cdm [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jun 5 14:58:25 2008 for MI - Fimex by  doxygen 1.4.6