29 #include "../MetaData.h"
38 type(type), invert(invert) {
50 bool result = this->
type ==
event->getType();
51 return this->
invert ? !result : result;
56 observer->notify(
this, action);
const std::string & getType() const
TypeFilter(const std::string &type, bool invert=false)
Creates a new type filter that matches events whose payload is of the type designated by type...
Types
Possible actions with filters.
boost::shared_ptr< FilterObserver > FilterObserverPtr
void notifyObserver(FilterObserverPtr observer, FilterAction::Types action)
Double-dispatch method to notfify a FilterObserver about changes for this filter with a more specific...
bool match(EventPtr event)
Matches the given event against the constraints specified by this filter.
boost::shared_ptr< Event > EventPtr