Base class for chainable EventHandlers. More...
#include <ChainableEventHandler.h>
Public Member Functions | |
bool | addEventHandler (T *event_handler) |
Add an EventHandler to be notified of events sent to this ChainableEventHandler. More... | |
void | removeEventHandler (T *target) |
Remove an EventHandler previously added with addEventHandler. More... | |
Base class for chainable EventHandlers.
Acts as a collection of discrete EventHandlers that can be linked together and notified when relevant events happen
Definition at line 29 of file ChainableEventHandler.h.
bool addEventHandler | ( | T * | event_handler | ) |
Add an EventHandler to be notified of events sent to this ChainableEventHandler.
[in] | event_handler | Handler to add to chain |
true | if adding EventHandler was successful, false otherwise |
Definition at line 54 of file ChainableEventHandler.h.
void removeEventHandler | ( | T * | target | ) |
Remove an EventHandler previously added with addEventHandler.
[in] | event_handler | Pointer to event handler to remove |
Definition at line 74 of file ChainableEventHandler.h.