Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

listener::EventFilter Class Reference

Class which is responsible of filtering events. More...

#include <event_filter.h>

Inheritance diagram for listener::EventFilter:

listener::EventFiltering List of all members.

Public Member Functions

virtual bool filter (Event *e)=0
 Filter the event e, and if successful return true. Otherwise, return false.

Detailed Description

Class which is responsible of filtering events.

 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
   }
 } ;


Member Function Documentation

virtual bool listener::EventFilter::filter Event e  )  [pure virtual]
 

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.


The documentation for this class was generated from the following file:
Generated on Mon Jan 30 11:57:50 2006 for EventListener by  doxygen 1.3.9.1