A facade class that invokes the processing of the filters and the resampling.
#include <MeteoProcessor.h>
Public Member Functions | |
MeteoProcessor (const Config &cfg, const char &rank=1, const IOUtils::OperationMode &mode=IOUtils::STD) | |
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 (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::string &stationHash, const std::vector< MeteoData > &ivec, MeteoData &md) |
void | resetResampling () |
void | getWindowSize (ProcessingProperties &o_properties) const |
const std::string | toString () const |
Static Public Member Functions | |
static std::set< std::string > | initStationSet (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &keyword) |
built the set of station IDs that a filter should be applied to or excluded from More... | |
static std::vector< DateRange > | initTimeRestrictions (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &keyword, const std::string &where, const double &TZ) |
built the set of time ranges to apply a certain processing to More... | |
mio::MeteoProcessor::MeteoProcessor | ( | const Config & | cfg, |
const char & | rank = 1 , |
||
const IOUtils::OperationMode & | mode = IOUtils::STD |
||
) |
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.
[in] | cfg | Config object that holds the config of the filters in the [Filters] section |
[in] | rank | in case of multiple TimeSeriesManager, rank in the stack? (default: 1) |
[in] | mode | spatial resampling operation mode (see IOUtils::OperationMode), default IOUtils::STD |
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.
void mio::MeteoProcessor::getWindowSize | ( | ProcessingProperties & | o_properties | ) | const |
|
static |
built the set of station IDs that a filter should be applied to or excluded from
[in] | vecArgs | All filter arguments |
[in] | keyword | Argument keyword (ex. EXCLUDE or ONLY) |
|
static |
built the set of time ranges to apply a certain processing to
[in] | vecArgs | All filter arguments |
[in] | keyword | Argument keyword (ex. WHEN) |
[in] | where | informative string to describe which component it is in case of error messages (ex. "Filter Min") |
[in] | TZ | time zone to use when building Date objects |
|
inline |
|
inline |
const std::string mio::MeteoProcessor::toString | ( | ) | const |