Mbed OS Reference
|
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 *event_handler) |
Remove an EventHandler previously added with addEventHandler. More... | |
bool | isEventHandlerPresent (T *event_handler) |
Test if an event handler is present in the chain or not. 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 * | event_handler | ) |
Remove an EventHandler previously added with addEventHandler.
[in] | event_handler | Pointer to event handler to remove |
Definition at line 74 of file ChainableEventHandler.h.
bool isEventHandlerPresent | ( | T * | event_handler | ) |
Test if an event handler is present in the chain or not.
[in] | event_handler | Pointer to event handler to check |
Definition at line 102 of file ChainableEventHandler.h.