29 #include "../MetaData.h"
33 using namespace rsc::misc;
38 OriginFilter::OriginFilter(
const UUID& origin,
40 origin(origin), invert(invert) {
52 bool result = this->
origin == e->getMetaData().getSenderId();
53 return this->
invert ? !result : result;
rsc::misc::UUID getOrigin() const
Types
Possible actions with filters.
void notifyObserver(FilterObserverPtr fo, FilterAction::Types at)
Double-dispatch method to notfify a FilterObserver about changes for this filter with a more specific...
boost::shared_ptr< FilterObserver > FilterObserverPtr
bool match(EventPtr e)
Matches the given event against the constraints specified by this filter.
boost::shared_ptr< Event > EventPtr