Abstract base class of a node in the event pipe tree from which EventGenerator and EventSink derive.
More...
Abstract base class of a node in the event pipe tree from which EventGenerator and EventSink derive.
- See also
- EventHandler.h
bool EventNode::processEvent |
( |
Event_Base * |
_event | ) |
|
|
protectedvirtual |
Sends an Event to all children.
Aborts propagation if its containing EventHandler or one of the children's EventHandler consumes the event.
- Parameters
-
_event | The event being propagated through the event pipe |
- Note
- must be overloaded and called from inheriting classes
- Returns
- True if the event was consumed, false otherwise
Reimplemented in EventGenerator, and EventSink.
void EventNode::RegisterEventSink |
( |
EventSink * |
sink | ) |
|
|
protected |
registers an event sink as a child of this node
- Parameters
-
sink | The EventSink intended to connect to this node |
bool EventNode::UnregisterEventSink |
( |
EventSink * |
sink | ) |
|
|
protected |
unregisters an event sink.
- Parameters
-
sink | The EventSink you want to disconnect from this node |
- Note
- Does NOT delete the child that is being unregistered!
- Returns
- True if succesful, false if the passed node was not a child of this node
The documentation for this class was generated from the following files:
- C:/Orbiter2016/Orbitersdk/IMS2/EventNode.h
- C:/Orbiter2016/Orbitersdk/IMS2/EventNode.cpp