CosinusProvider.h
32 lines
| 877 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r128 | #ifndef SCIQLOP_COSINUSPROVIDER_H | ||
#define SCIQLOP_COSINUSPROVIDER_H | ||||
Alexandre Leroux
|
r351 | #include "MockPluginGlobal.h" | ||
Alexandre Leroux
|
r128 | #include <Data/IDataProvider.h> | ||
r231 | #include <QLoggingCategory> | |||
r428 | #include <QUuid> | |||
r231 | ||||
r428 | #include <QHash> | |||
r231 | ||||
Alexandre Leroux
|
r128 | /** | ||
* @brief The CosinusProvider class is an example of how a data provider can generate data | ||||
*/ | ||||
r1423 | class SCIQLOP_MOCKPLUGIN_EXPORT CosinusProvider : public IDataProvider | |||
{ | ||||
Alexandre Leroux
|
r128 | public: | ||
Alexandre Leroux
|
r712 | std::shared_ptr<IDataProvider> clone() const override; | ||
r1423 | virtual TimeSeries::ITimeSerie* getData(const DataProviderParameters& parameters) override; | |||
r1350 | ||||
r231 | private: | |||
r1423 | std::shared_ptr<IDataSeries> retrieveData( | |||
QUuid acqIdentifier, const DateTimeRange& dataRangeRequested, const QVariantHash& data); | ||||
r428 | ||||
r1423 | TimeSeries::ITimeSerie* _generate(const DateTimeRange& range, const QVariantHash& metaData); | |||
r1350 | ||||
r428 | QHash<QUuid, bool> m_VariableToEnableProvider; | |||
Alexandre Leroux
|
r128 | }; | ||
#endif // SCIQLOP_COSINUSPROVIDER_H | ||||