15 lines
494 B
C++
15 lines
494 B
C++
|
#include <framework/events/eventmatching/SeverityRangeMatcher.h>
|
||
|
#include <framework/events/EventMessage.h>
|
||
|
#include <framework/serialize/SerializeAdapter.h>
|
||
|
|
||
|
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());
|
||
|
}
|