CosinusProvider.h
34 lines
| 1012 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r120 | #ifndef SCIQLOP_COSINUSPROVIDER_H | ||
#define SCIQLOP_COSINUSPROVIDER_H | ||||
Alexandre Leroux
|
r324 | #include "MockPluginGlobal.h" | ||
Alexandre Leroux
|
r120 | #include <Data/IDataProvider.h> | ||
r215 | #include <QLoggingCategory> | |||
r394 | #include <QUuid> | |||
r215 | ||||
r394 | #include <QHash> | |||
r215 | Q_DECLARE_LOGGING_CATEGORY(LOG_CosinusProvider) | |||
Alexandre Leroux
|
r120 | /** | ||
* @brief The CosinusProvider class is an example of how a data provider can generate data | ||||
*/ | ||||
Alexandre Leroux
|
r324 | class SCIQLOP_MOCKPLUGIN_EXPORT CosinusProvider : public IDataProvider { | ||
Alexandre Leroux
|
r120 | public: | ||
r394 | /// @sa IDataProvider::requestDataLoading(). The current impl isn't thread safe. | |||
r510 | void requestDataLoading(QUuid acqIdentifier, const DataProviderParameters ¶meters) override; | |||
r215 | ||||
r394 | /// @sa IDataProvider::requestDataAborting(). The current impl isn't thread safe. | |||
r510 | void requestDataAborting(QUuid acqIdentifier) override; | |||
r388 | ||||
r215 | private: | |||
r510 | std::shared_ptr<IDataSeries> retrieveData(QUuid acqIdentifier, | |||
const SqpRange &dataRangeRequested); | ||||
r394 | ||||
QHash<QUuid, bool> m_VariableToEnableProvider; | ||||
Alexandre Leroux
|
r120 | }; | ||
#endif // SCIQLOP_COSINUSPROVIDER_H | ||||