CCIMXDesktop
 
Loading...
Searching...
No Matches
TemperaryCacher.h
1#ifndef TEMPERARYCACHER_H
2#define TEMPERARYCACHER_H
3
4#include <QMap>
11public:
16 TemperaryCacher() = default;
24 void ensub_labels(const QString& label, const QString& text);
30 void remove_label(const QString& label);
35 void clear() { label_context_map.clear(); }
41 QStringList labels() const { return label_context_map.keys(); }
48 std::optional<QString> query(const QString& label);
49
50private:
51 QMap<QString, QString> label_context_map;
52};
53
54#endif // TEMPERARYCACHER_H
TemperaryCacher cached the tmp Markdown holder.
Definition TemperaryCacher.h:10
QStringList labels() const
label managings
Definition TemperaryCacher.h:41
Q_DISABLE_COPY_MOVE(TemperaryCacher)
disabled the TemperaryCacher
std::optional< QString > query(const QString &label)
query the context
Definition TemperaryCacher.cpp:11
void remove_label(const QString &label)
remove the management
Definition TemperaryCacher.cpp:7
TemperaryCacher()=default
Construct a new Temperary Cacher object.
void clear()
clear the holdings
Definition TemperaryCacher.h:35
void ensub_labels(const QString &label, const QString &text)
push the label <-> context pair into management
Definition TemperaryCacher.cpp:3