MeteoIODoc  2.10.0
mio::DataGenerator Class Reference

Detailed Description

A class to generate meteo data from user-selected models or parametrizations. This class sits in between the actual implementation of the various methods and the IOManager in order to offer some high level interface. It basically reads the arguments and creates the objects for the various data generators in its constructor and loop through the parameters and stations when called to fill the data.

Author
Mathias Bavay

#include <DataGenerator.h>

Public Member Functions

 DataGenerator (const Config &cfg, const std::set< std::string > &params_to_generate=std::set< std::string >())
 
 DataGenerator (const DataGenerator &c)
 
virtual ~DataGenerator ()
 
void fillMissing (METEO_SET &vecMeteo) const
 generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced. More...
 
void fillMissing (std::vector< METEO_SET > &vecVecMeteo) const
 generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced. More...
 
DataGeneratoroperator= (const DataGenerator &source)
 
const std::string toString () const
 

Constructor & Destructor Documentation

◆ DataGenerator() [1/2]

mio::DataGenerator::DataGenerator ( const Config cfg,
const std::set< std::string > &  params_to_generate = std::set<std::string>() 
)

◆ DataGenerator() [2/2]

mio::DataGenerator::DataGenerator ( const DataGenerator c)
inline

◆ ~DataGenerator()

mio::DataGenerator::~DataGenerator ( )
virtual

Member Function Documentation

◆ fillMissing() [1/2]

void mio::DataGenerator::fillMissing ( METEO_SET vecMeteo) const

generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced.

Parameters
vecMeteovector containing one point for each station

◆ fillMissing() [2/2]

void mio::DataGenerator::fillMissing ( std::vector< METEO_SET > &  vecVecMeteo) const

generate data to fill missing data points. This relies on data generators defined by the user for each meteo parameters. This loops over the defined generators and stops as soon as all missing points have been successfully replaced.

Parameters
vecVecMeteovector containing a timeserie for each station

◆ operator=()

DataGenerator & mio::DataGenerator::operator= ( const DataGenerator source)

◆ toString()

const std::string mio::DataGenerator::toString ( ) const

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