##// END OF EJS Templates
Made downloader thread safe, added debugging helper for DateTimeRange...
Made downloader thread safe, added debugging helper for DateTimeRange Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r9:b3317a5111ec
r34:8f50e908dd31
Show More
VariableCacheStrategy.h
32 lines | 732 B | text/x-c | CLexer
/ include / Variable / VariableCacheStrategy.h
#ifndef SCIQLOP_VARIABLECACHESTRATEGY_H
#define SCIQLOP_VARIABLECACHESTRATEGY_H
#include "CoreGlobal.h"
#include <QLoggingCategory>
#include <QObject>
#include <Data/DateTimeRange.h>
#include <QLoggingCategory>
#include <Common/spimpl.h>
#include <utility>
Q_DECLARE_LOGGING_CATEGORY(LOG_VariableCacheStrategy)
class Variable;
/// This class aims to hande the cache strategy.
class SCIQLOP_CORE_EXPORT VariableCacheStrategy {
public:
virtual ~VariableCacheStrategy() noexcept = default;
virtual DateTimeRange computeRange(const DateTimeRange &currentCacheRange,
const DateTimeRange &rangeRequested)
= 0;
};
#endif // SCIQLOP_VARIABLECACHESTRATEGY_H