summaryrefslogtreecommitdiff
path: root/src/desktop/rule/matchEngine/BoolMatchEngine.cpp
blob: f5c472278cbf8896e83f8fa49b5adaeb780cd61f (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}