blob: c8f3c09ebdcb6e718b5de32f01aa7f64a2f9fd7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "IntMatchEngine.hpp"
#include "../../../debug/log/Logger.hpp"
using namespace Desktop::Rule;
CIntMatchEngine::CIntMatchEngine(const std::string& s) {
try {
m_value = std::stoi(s);
} catch (...) { Log::logger->log(Log::ERR, "CIntMatchEngine: invalid input {}", s); }
}
bool CIntMatchEngine::match(int other) {
return m_value == other;
}
|