summaryrefslogtreecommitdiff
path: root/src/desktop/rule/matchEngine/BoolMatchEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/rule/matchEngine/BoolMatchEngine.cpp')
-rw-r--r--src/desktop/rule/matchEngine/BoolMatchEngine.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/desktop/rule/matchEngine/BoolMatchEngine.cpp b/src/desktop/rule/matchEngine/BoolMatchEngine.cpp
new file mode 100644
index 00000000..f5c47227
--- /dev/null
+++ b/src/desktop/rule/matchEngine/BoolMatchEngine.cpp
@@ -0,0 +1,12 @@
+#include "BoolMatchEngine.hpp"
+#include "../../../helpers/MiscFunctions.hpp"
+
+using namespace Desktop::Rule;
+
+CBoolMatchEngine::CBoolMatchEngine(const std::string& s) : m_value(truthy(s)) {
+ ;
+}
+
+bool CBoolMatchEngine::match(bool other) {
+ return other == m_value;
+}