36 method(method), invert(invert) {
48 bool result = this->
method ==
event->getMethod();
49 return this->
invert ? !result : result;
54 observer->notify(
this, action);
MethodFilter(const std::string &method, bool invert=false)
Creates a new method filter that matches events whose method fields have the value method...
void notifyObserver(FilterObserverPtr observer, FilterAction::Types action)
Double-dispatch method to notfify a FilterObserver about changes for this filter with a more specific...
Types
Possible actions with filters.
bool match(EventPtr event)
Matches the given event against the constraints specified by this filter.
boost::shared_ptr< FilterObserver > FilterObserverPtr
const std::string & getMethod() const
boost::shared_ptr< Event > EventPtr