next up previous contents
Next: Revisions Up: listener Previous: Contents   Contents


This package recreate an Event pattern similar to the one used in Java. It uses the patterns Listener and Observer/Observable to connect objects between them by mean of listeners, and create communication by propagating events.

Events can be emitted from anywhere through a Publisher and be intercepted by a Subscriber which can listen to these Events by using appropriate Listeners or having a method with the type of event as pointer argument.

In most common cases, client code will use a Publisher to emit custom Events, and a Subscriber to receives events, the connection being done by the use of the igs_connect template function. Other classes of this package can be avoided (EventFilter, Listener, etc...).

Frantz Maerten 2006-01-30