##// END OF EJS Templates
Merge branch 'feature/VariableSelection' into develop
Merge branch 'feature/VariableSelection' into develop

File last commit:

r243:e94f13bbc48f
r292:7f62a644886e merge
Show More
VariableCacheController.h
33 lines | 1018 B | text/x-c | CLexer
/ core / include / Variable / VariableCacheController.h
Create a variable notify the variable cache parameter
r225 #ifndef SCIQLOP_VARIABLECACHECONTROLLER_H
#define SCIQLOP_VARIABLECACHECONTROLLER_H
#include <QObject>
#include <Data/SqpDateTime.h>
#include <Common/spimpl.h>
class Variable;
Correction for pull request
r243 /// This class aims to store in the cache all of the dateTime already requested to the variable.
Create a variable notify the variable cache parameter
r225 class VariableCacheController : public QObject {
Q_OBJECT
public:
explicit VariableCacheController(QObject *parent = 0);
void addDateTime(std::shared_ptr<Variable> variable, const SqpDateTime &dateTime);
Implementation of the addDateTime method of the cache
r230 /// Return all of the SqpDataTime part of the dateTime whose are not in the cache
QVector<SqpDateTime> provideNotInCacheDateTimeList(std::shared_ptr<Variable> variable,
const SqpDateTime &dateTime);
QVector<SqpDateTime> dateCacheList(std::shared_ptr<Variable> variable) const noexcept;
Create a variable notify the variable cache parameter
r225 private:
class VariableCacheControllerPrivate;
spimpl::unique_impl_ptr<VariableCacheControllerPrivate> impl;
};
#endif // SCIQLOP_VARIABLECACHECONTROLLER_H