Package events

OpenGLPrakt --> events
events

Here are the packages which make up my event handling system.

It is based on the Register/Dispatch Idiom as described in the C++ Coding Standard.

Although it is pretty simple, it is very powerful. The center of the event system is an event dispatcher. It does not need to be a centralized solution but can be distributed as well (several event dispatchers connected via appropiate routing protocols). The best of it is, that one can later derive from cEventDispatcher to implement more sophisticated methods of event routing. The current implementation only passes events withing the same program.

To make the system work, event consumers subscribe for specified events at the event dispatcher. Event producers send their events to the event dispatcher which in turn figures out which consumer is interested in that particular event. It then calls every subscriber at first come - first serve basis and passes the event to the subscriber. The subscriber may or may not accept the event. If it was not accepted, it is passed to the next subscriber, else it is considered to have been delivered successfully.

That's all.


This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.