EventType
Event types in the parking system.
Definition Event.h:9
Interface for event bus.
Definition IEventBus.h:12
virtual void processAllPending()=0
Process all pending events (for synchronous testing)
virtual void subscribe(EventType type, std::function< void(const Event &)> handler)=0
Subscribe to specific event type.
virtual bool waitForEvent(Event &outEvent, uint32_t timeoutMs)=0
Wait for next event (blocking, for FreeRTOS tasks)
virtual void publish(const Event &event)=0
Publish event to all subscribers.
virtual ~IEventBus()=default
Event structure.
Definition Event.h:45