DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EventListener Class Referenceabstract

Class to extend for all other classes that need to respond to events For example: Class <MyClass> : public EventListener () {} The recommended approach is to implement a switch/case in the onEvent() implementation to handle valid event types. More...

#include <EventListener.h>

Inheritance diagram for EventListener:
Inheritance graph
[legend]

Public Member Functions

virtual void onEvent (Event &event)=0
 Virtual method to implement in the inheriting class to respond to events.
 

Detailed Description

Class to extend for all other classes that need to respond to events For example: Class <MyClass> : public EventListener () {} The recommended approach is to implement a switch/case in the onEvent() implementation to handle valid event types.

Member Function Documentation

◆ onEvent()

virtual void EventListener::onEvent ( Event event)
pure virtual

Virtual method to implement in the inheriting class to respond to events.

Parameters
eventThe event to respond to

Implemented in AppOrchestrator.


The documentation for this class was generated from the following file: