2024-05-29 05:37:24 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
|
|
class CTagKeeper {
|
|
|
|
|
public:
|
2024-12-07 18:51:18 +01:00
|
|
|
bool isTagged(const std::string& tag, bool strict = false);
|
|
|
|
|
bool applyTag(const std::string& tag, bool dynamic = false);
|
|
|
|
|
bool removeDynamicTags();
|
2024-05-29 05:37:24 +08:00
|
|
|
|
2024-12-07 18:51:18 +01:00
|
|
|
const auto& getTags() const {
|
2024-05-29 05:37:24 +08:00
|
|
|
return m_tags;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::set<std::string> m_tags;
|
|
|
|
|
};
|