#include <event_filter.h>
Inheritance diagram for listener::EventFilter:

Public Member Functions | |
| virtual bool | filter (Event *e)=0 |
| Filter the event e, and if successful return true. Otherwise, return false. | |
class MyFilter: public EventFilter { public: virtual void filter(Listener*, Event* e) { if (e->is_of_type<NodeAddedEvent>()) // exactly of type return true ; // The signal will be propagated return false ; // The signal will be stopped } } ;
|
|
Filter the event e, and if successful return true. Otherwise, return false. If this method return false, the event is not send. Otherwise it is propagated. Implemented in listener::EventFiltering. |
1.3.9.1