36 CauseFilter::CauseFilter(
const UUID& cause,
38 causeAsUUID(cause), invert(invert) {
41 CauseFilter::CauseFilter(
const EventId& cause,
43 causeAsEventId(new
EventId(cause)), invert(invert) {
63 std::set<EventId> causes = e->getCauses();
64 for (std::set<EventId>::const_iterator it = causes.begin();
65 it != causes.end(); ++it) {
72 return this->
invert ? !result : result;
rsc::misc::UUID causeAsUUID
bool isInverted() const
Indicates whether the filter is inverted.
rsc::misc::UUID getCause() const
Return the cause that has to be present in events matched by this filter.
void notifyObserver(FilterObserverPtr fo, FilterAction::Types at)
Double-dispatch method to notfify a FilterObserver about changes for this filter with a more specific...
bool match(EventPtr e)
Matches the given event against the constraints specified by this filter.
Types
Possible actions with filters.
EventIdPtr causeAsEventId
boost::shared_ptr< FilterObserver > FilterObserverPtr
A unique ID for events in RSB.
boost::shared_ptr< Event > EventPtr