##// END OF EJS Templates
variable time is now set to range graphe displayed when it is displayed...
variable time is now set to range graphe displayed when it is displayed in it

File last commit:

r287:9a5cb57f1573
r289:85f427f84e81
Show More
IDataProvider.h
42 lines | 1.0 KiB | text/x-c | CLexer
Alexandre Leroux
Creates IDataProvider interface
r114 #ifndef SCIQLOP_IDATAPROVIDER_H
#define SCIQLOP_IDATAPROVIDER_H
#include <memory>
Alexandre Leroux
Makes the connection between Data source controller and Variable controller...
r157 #include <QObject>
Alexandre Leroux
Centralization of qregistermetatype management
r285 #include <Common/MetaTypes.h>
Add merge API and implement it for the DataSeries
r217 #include <Data/SqpDateTime.h>
Alexandre Leroux
Creates IDataProvider interface
r114 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
*/
Add merge API and implement it for the DataSeries
r217 class IDataProvider : public QObject {
Q_OBJECT
Alexandre Leroux
Creates IDataProvider interface
r114 public:
virtual ~IDataProvider() noexcept = default;
Alexandre Leroux
Use std::shared_ptr in CosinusProvider
r287 virtual std::shared_ptr<IDataSeries>
Alexandre Leroux
Creates IDataProvider interface
r114 retrieveData(const DataProviderParameters &parameters) const = 0;
Add merge API and implement it for the DataSeries
r217
virtual void requestDataLoading(const QVector<SqpDateTime> &dateTimeList) = 0;
signals:
Correction for pull request
r227 void dataProvided(std::shared_ptr<IDataSeries> dateSerie, const SqpDateTime &dateTime);
Add merge API and implement it for the DataSeries
r217 };
Alexandre Leroux
Centralization of qregistermetatype management
r285
Alexandre Leroux
Makes the connection between Data source controller and Variable controller...
r157 // Required for using shared_ptr in signals/slots
Alexandre Leroux
Centralization of qregistermetatype management
r285 SCIQLOP_REGISTER_META_TYPE(IDATAPROVIDER_PTR_REGISTRY, std::shared_ptr<IDataProvider>)
Alexandre Leroux
Makes the connection between Data source controller and Variable controller...
r157
Alexandre Leroux
Creates IDataProvider interface
r114 #endif // SCIQLOP_IDATAPROVIDER_H