Inheritance diagram for util::EventListener< T >:
An event can be of any type, and it is wise to write a custom event class for each event listener type to avoid confusion. If, for example, two event sources fire int events, then the listeners may be confused. Possible confusions can be solved by inspecting the source of the event, but this is not an elegant solution.
|virtual void||eventOccured (EventSource< T > *source, const T &event)=0|
|Called by EventSource whenever an event occurs. |
Called by EventSource whenever an event occurs.
All registered listeners will be notified with the source attribute set to the source of the event.
Implemented in FeatureSelector< T, I, C >.