18#ifndef EVENTSTRUCTURE_H 
   19#define EVENTSTRUCTURE_H 
   22#include <DCCEXProtocol.h> 
EventType
Enum containing all the event types that subscribers can listen for, and publishers can publish Liste...
Definition EventStructure.h:26
 
@ ReceivedRosterList
Definition EventStructure.h:28
 
@ ToggleTrackPower
Definition EventStructure.h:35
 
@ SetPowerProg
Definition EventStructure.h:38
 
@ ReceivedLocoUpdate
Definition EventStructure.h:31
 
@ SetPowerMain
Definition EventStructure.h:37
 
@ ReadLocoAddress
Definition EventStructure.h:30
 
@ ReceivedReadLoco
Definition EventStructure.h:34
 
@ ReceivedTrackPower
Definition EventStructure.h:33
 
@ LocoSelected
Definition EventStructure.h:29
 
@ JoinProgTrack
Definition EventStructure.h:36
 
@ CommandStationSelected
Definition EventStructure.h:27
 
@ ReceivedLocoBroadcast
Definition EventStructure.h:32
 
Structure to enable supporting EventData that has various different types Byte - caters for 8 bit uns...
Definition EventStructure.h:66
 
TrackPower trackPowerValue
Definition EventStructure.h:74
 
EventData(uint8_t value)
Constructor for events with a uint8_t parameter.
Definition EventStructure.h:80
 
Loco * locoValue
Definition EventStructure.h:73
 
DataType dataType
Definition EventStructure.h:68
 
EventData()
Constructor for events with no data or parameters.
Definition EventStructure.h:91
 
int intValue
Definition EventStructure.h:72
 
EventData(TrackPower value)
Constructor for events containing track power.
Definition EventStructure.h:94
 
uint8_t byteValue
Definition EventStructure.h:71
 
EventData(LocoBroadcast value)
Constructor for events containing loco broadcasts.
Definition EventStructure.h:98
 
EventData(int value)
Constructor for events with an int parameter.
Definition EventStructure.h:84
 
DataType
Definition EventStructure.h:67
 
EventData(Loco *value)
Constructor for events with a Loco pointer.
Definition EventStructure.h:88
 
LocoBroadcast locoBroadcastValue
Definition EventStructure.h:75
 
Structure for each Event that is published.
Definition EventStructure.h:102
 
EventData eventData
Definition EventStructure.h:104
 
EventType eventType
Definition EventStructure.h:103
 
Event(EventType eventType, EventData eventData)
Constructor for each event.
Definition EventStructure.h:109
 
Structure for data from a Loco broadcast.
Definition EventStructure.h:42
 
int address
Definition EventStructure.h:43
 
Direction direction
Definition EventStructure.h:45
 
int functionMap
Definition EventStructure.h:46
 
LocoBroadcast(int address, int speed, Direction direction, int functionMap)
Constructor for LocoBroadcast data.
Definition EventStructure.h:53
 
int speed
Definition EventStructure.h:44