##// END OF EJS Templates
Makes the connection between Data source controller and Variable controller...
Makes the connection between Data source controller and Variable controller - Adds a signal to prevent a variable creation request from the data source controller - Connects the signal to the slot that creates a variable in the variable controller

File last commit:

r157:90c64bed8482
r157:90c64bed8482
Show More
IDataProvider.h
30 lines | 743 B | 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
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
*/
class IDataProvider {
public:
virtual ~IDataProvider() noexcept = default;
virtual std::unique_ptr<IDataSeries>
retrieveData(const DataProviderParameters &parameters) const = 0;
};
Alexandre Leroux
Makes the connection between Data source controller and Variable controller...
r157 // Required for using shared_ptr in signals/slots
Q_DECLARE_METATYPE(std::shared_ptr<IDataProvider>)
Alexandre Leroux
Creates IDataProvider interface
r114 #endif // SCIQLOP_IDATAPROVIDER_H