2020-08-13 20:53:35 +02:00
|
|
|
#include "SeverityRangeMatcher.h"
|
|
|
|
#include "../../events/EventMessage.h"
|
|
|
|
#include "../../serialize/SerializeAdapter.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
SeverityRangeMatcher::SeverityRangeMatcher(EventSeverity_t from,
|
|
|
|
EventSeverity_t till, bool inverted) : EventRangeMatcherBase<EventSeverity_t>(from, till, inverted) {
|
|
|
|
}
|
|
|
|
|
|
|
|
SeverityRangeMatcher::~SeverityRangeMatcher() {
|
|
|
|
}
|
|
|
|
|
|
|
|
bool SeverityRangeMatcher::match(EventMessage* message) {
|
|
|
|
return rangeMatcher.match(message->getSeverity());
|
|
|
|
}
|