CosinusProvider.h
31 lines
| 850 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 | ||||
*/ | ||||
Alexandre Leroux
|
r351 | class SCIQLOP_MOCKPLUGIN_EXPORT CosinusProvider : public IDataProvider { | ||
Alexandre Leroux
|
r128 | public: | ||
Alexandre Leroux
|
r712 | std::shared_ptr<IDataProvider> clone() const override; | ||
r1350 | virtual IDataSeries* getData(const DataProviderParameters ¶meters) override; | |||
r231 | private: | |||
Alexandre Leroux
|
r781 | std::shared_ptr<IDataSeries> | ||
r1346 | retrieveData(QUuid acqIdentifier, const DateTimeRange &dataRangeRequested, const QVariantHash &data); | |||
r428 | ||||
r1350 | IDataSeries* _generate(const DateTimeRange &range, const QVariantHash &metaData); | |||
r428 | QHash<QUuid, bool> m_VariableToEnableProvider; | |||
Alexandre Leroux
|
r128 | }; | ||
#endif // SCIQLOP_COSINUSPROVIDER_H | ||||