DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
/home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/EventListener.h
Go to the documentation of this file.
1/*
2 * © 2024 Peter Cole
3 *
4 * This is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * It is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this code. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef EVENTLISTENER_H
19#define EVENTLISTENER_H
20
21#include "EventStructure.h"
22
27public:
30 virtual void onEvent(Event &event) = 0;
31};
32
33#endif // EVENTLISTENER_H
Class to extend for all other classes that need to respond to events For example: Class <MyClass> : p...
Definition EventListener.h:26
virtual void onEvent(Event &event)=0
Virtual method to implement in the inheriting class to respond to events.
Structure for each Event that is published.
Definition EventStructure.h:102