IDataProvider.h
25 lines
| 621 B
| text/x-c
|
CLexer
|
r114 | #ifndef SCIQLOP_IDATAPROVIDER_H | ||
#define SCIQLOP_IDATAPROVIDER_H | ||||
#include <memory> | ||||
class DataProviderParameters; | ||||
class IDataSeries; | ||||
/** | ||||
* @brief The IDataProvider interface aims to declare a data provider. | ||||
* | ||||
* A data provider is an entity that generates data and returns it according to various parameters | ||||
* (time interval, product to retrieve the data, etc.) | ||||
* | ||||
* @sa IDataSeries | ||||
*/ | ||||
class IDataProvider { | ||||
public: | ||||
virtual ~IDataProvider() noexcept = default; | ||||
virtual std::unique_ptr<IDataSeries> | ||||
retrieveData(const DataProviderParameters ¶meters) const = 0; | ||||
}; | ||||
#endif // SCIQLOP_IDATAPROVIDER_H | ||||