Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::SimpleEventHandler Class Reference

SimpleEventHandler ignores all non-essential callbacks. More...

#include <EventHandlerTemplates.hxx>

Inheritance diagram for openlcb::SimpleEventHandler:
openlcb::EventHandler openlcb::FixedEventProducer< openlcb::TractionDefs::IS_TRAIN_EVENT > openlcb::FixedEventProducer< TractionDefs::IS_PROXY_EVENT > openlcb::BitEventHandler openlcb::BitRangeEventPC openlcb::BitRangeNonAuthoritativeEventP openlcb::BroadcastTime openlcb::ByteRangeEventC openlcb::CallbackEventHandler openlcb::ConfiguredPulseConsumer openlcb::DccAccyConsumerBase openlcb::DccExtAccyConsumerBase openlcb::FixedEventProducer< EVENT_ID > openlcb::LatencyTestConsumer openlcb::MultiConfiguredConsumer openlcb::MultiConfiguredPC

Public Member Functions

 IGNOREFN (handle_event_report)
 
 IGNOREFN (handle_consumer_identified)
 
 IGNOREFN (handle_consumer_range_identified)
 
 IGNOREFN (handle_producer_identified)
 
 IGNOREFN (handle_producer_range_identified)
 
 IGNOREFN (handle_identify_consumer)
 
 IGNOREFN (handle_identify_producer)
 
- Public Member Functions inherited from openlcb::EventHandler
virtual void handle_event_report (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)=0
 Called on incoming EventReport messages.
 
virtual void handle_consumer_identified (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)
 Called on another node sending ConsumerIdentified for this event.
 
virtual void handle_consumer_range_identified (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)
 Called on another node sending ConsumerRangeIdentified.
 
virtual void handle_producer_identified (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)
 Called on another node sending ProducerIdentified for this event.
 
virtual void handle_producer_range_identified (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)
 Called on another node sending ProducerRangeIdentified for this event.
 
virtual void handle_identify_global (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)=0
 Called on the need of sending out identification messages.
 
virtual void handle_identify_consumer (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)=0
 Called on another node sending IdentifyConsumer.
 
virtual void handle_identify_producer (const EventRegistryEntry &registry_entry, EventReport *event, BarrierNotifiable *done)=0
 Called on another node sending IdentifyProducer.
 

Additional Inherited Members

- Public Types inherited from openlcb::EventHandler
using EventReport = openlcb::EventReport
 
using EventRegistryEntry = openlcb::EventRegistryEntry
 
using EventId = openlcb::EventId
 

Detailed Description

SimpleEventHandler ignores all non-essential callbacks.

This is used as as a base class for other event handler implementations to avoid duplicate code.

Definition at line 94 of file EventHandlerTemplates.hxx.


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