MeteoIODoc  MeteoIODoc-2.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mio::MeteoProcessor Class Reference

Detailed Description

A facade class that invokes the processing of the filters and the resampling.

Author
Thomas Egger
Date
2010-06-25

#include <MeteoProcessor.h>

Public Member Functions

 MeteoProcessor (const Config &cfg)
 The default constructor - Set up a processing stack for each parameter The different stacks are created on the heap and pointers to the objects are stored in the map<string,ProcessingStack*> object processing_stack. More...
 
 ~MeteoProcessor ()
 The destructor - It is necessary because the ProcessingStack objects referenced in the map<string, ProcessingStack*> processing_stack have to be freed from the heap. More...
 
void process (const std::vector< std::vector< MeteoData > > &ivec, std::vector< std::vector< MeteoData > > &ovec, const bool &second_pass=false)
 A function that executes all the filters for all meteo parameters configuered by the user. More...
 
bool resample (const Date &date, const std::vector< MeteoData > &ivec, MeteoData &md)
 
void getWindowSize (ProcessingProperties &o_properties) const
 
const std::string toString () const
 

Constructor & Destructor Documentation

mio::MeteoProcessor::MeteoProcessor ( const Config cfg)

The default constructor - Set up a processing stack for each parameter The different stacks are created on the heap and pointers to the objects are stored in the map<string,ProcessingStack*> object processing_stack.

Parameters
[in]cfgConfig object that holds the config of the filters in the [Filters] section
mio::MeteoProcessor::~MeteoProcessor ( )

The destructor - It is necessary because the ProcessingStack objects referenced in the map<string, ProcessingStack*> processing_stack have to be freed from the heap.

Member Function Documentation

void mio::MeteoProcessor::getWindowSize ( ProcessingProperties o_properties) const
void mio::MeteoProcessor::process ( const std::vector< std::vector< MeteoData > > &  ivec,
std::vector< std::vector< MeteoData > > &  ovec,
const bool &  second_pass = false 
)

A function that executes all the filters for all meteo parameters configuered by the user.

Parameters
[in]ivecThe raw sequence of MeteoData objects for all stations
[in]ovecThe filtered output of MeteoData object for all stations
[in]second_passWhether this is the second pass (check only filters)
bool mio::MeteoProcessor::resample ( const Date date,
const std::vector< MeteoData > &  ivec,
MeteoData md 
)
const std::string mio::MeteoProcessor::toString ( ) const

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