Rasterfarm-SDK
|
#include <eventhandler.h>
Public Member Functions | |
EventHandler (const HeapArray< TypeID > &filter={}, const HeapArray< TypeID > &subTypeFilter={}) | |
virtual | ~EventHandler () |
void | send (const Event &event) |
bool | filterEvent (const Event &event) |
Protected Member Functions | |
virtual void | notify (const Event &event)=0 |
Protected Attributes | |
HeapArray< TypeID > | filter |
HeapArray< TypeID > | subTypeFilter |
Base ADT-Class for handling events.
EventHandler::EventHandler | ( | const HeapArray< TypeID > & | filter = {}, |
const HeapArray< TypeID > & | subTypeFilter = {} ) |
Array | of class-types to filter. Default enables all types from event.h. |
|
virtual |
bool EventHandler::filterEvent | ( | const Event & | event | ) |
Array | of class-types to filter. |
|
protectedpure virtual |
void EventHandler::send | ( | const Event & | event | ) |
|
protected |
|
protected |