##// END OF EJS Templates
Implements filter function for data source...
Implements filter function for data source An item is valid if one of its metadata matches the text in the seach box

File last commit:

r461:b8af3b4730c2
r477:eab21078feec
Show More
VariableCacheController.h
45 lines | 1.3 KiB | 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
Alexandre Leroux
Exports core module as a shared library...
r461 #include "CoreGlobal.h"
Alexandre Leroux
Variable deletion (2)...
r331 #include <QLoggingCategory>
Create a variable notify the variable cache parameter
r225 #include <QObject>
#include <Data/SqpDateTime.h>
Add method to display cache....
r293 #include <QLoggingCategory>
Create a variable notify the variable cache parameter
r225 #include <Common/spimpl.h>
Alexandre Leroux
Variable deletion (2)...
r331 Q_DECLARE_LOGGING_CATEGORY(LOG_VariableCacheController)
Create a variable notify the variable cache parameter
r225 class Variable;
Correction for pull request
r243 /// This class aims to store in the cache all of the dateTime already requested to the variable.
Alexandre Leroux
Exports core module as a shared library...
r461 class SCIQLOP_CORE_EXPORT VariableCacheController : public QObject {
Create a variable notify the variable cache parameter
r225 Q_OBJECT
public:
explicit VariableCacheController(QObject *parent = 0);
void addDateTime(std::shared_ptr<Variable> variable, const SqpDateTime &dateTime);
Alexandre Leroux
Variable deletion (2)...
r331 /// Clears cache concerning a variable
void clear(std::shared_ptr<Variable> variable) noexcept;
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;
Correction MR
r300 void displayCache(std::shared_ptr<Variable> variable) const;
Add method to display cache....
r293
Create a variable notify the variable cache parameter
r225 private:
class VariableCacheControllerPrivate;
spimpl::unique_impl_ptr<VariableCacheControllerPrivate> impl;
};
#endif // SCIQLOP_VARIABLECACHECONTROLLER_H