core: add missing headers (#12686)
This commit is contained in:
parent
315806f598
commit
3bbbb5aaca
4 changed files with 8 additions and 4 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
namespace Desktop::Rule {
|
namespace Desktop::Rule {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
@ -78,4 +79,4 @@ namespace Desktop::Rule {
|
||||||
std::vector<std::string> m_keys;
|
std::vector<std::string> m_keys;
|
||||||
size_t m_originalSize = 0;
|
size_t m_originalSize = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#include "TagMatchEngine.hpp"
|
#include "TagMatchEngine.hpp"
|
||||||
#include "../../../helpers/TagKeeper.hpp"
|
#include "../../../helpers/TagKeeper.hpp"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
using namespace Desktop::Rule;
|
using namespace Desktop::Rule;
|
||||||
|
|
||||||
|
|
@ -9,4 +10,4 @@ CTagMatchEngine::CTagMatchEngine(const std::string& tag) : m_tag(tag) {
|
||||||
|
|
||||||
bool CTagMatchEngine::match(const CTagKeeper& keeper) {
|
bool CTagMatchEngine::match(const CTagKeeper& keeper) {
|
||||||
return keeper.isTagged(m_tag);
|
return keeper.isTagged(m_tag);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "MatchEngine.hpp"
|
#include "MatchEngine.hpp"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace Desktop::Rule {
|
namespace Desktop::Rule {
|
||||||
class CTagMatchEngine : public IMatchEngine {
|
class CTagMatchEngine : public IMatchEngine {
|
||||||
|
|
@ -13,4 +14,4 @@ namespace Desktop::Rule {
|
||||||
private:
|
private:
|
||||||
std::string m_tag;
|
std::string m_tag;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "MatchEngine.hpp"
|
#include "MatchEngine.hpp"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace Desktop::Rule {
|
namespace Desktop::Rule {
|
||||||
class CWorkspaceMatchEngine : public IMatchEngine {
|
class CWorkspaceMatchEngine : public IMatchEngine {
|
||||||
|
|
@ -13,4 +14,4 @@ namespace Desktop::Rule {
|
||||||
private:
|
private:
|
||||||
std::string m_value = "";
|
std::string m_value = "";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue