|
Parking Garage Control System
ESP32 Parking Garage – ESP-IDF/FreeRTOS
|
Interface for event bus. More...
#include <IEventBus.h>

Public Member Functions | |
| virtual | ~IEventBus ()=default |
| virtual void | subscribe (EventType type, std::function< void(const Event &)> handler)=0 |
| Subscribe to specific event type. | |
| virtual void | publish (const Event &event)=0 |
| Publish event to all subscribers. | |
| virtual void | processAllPending ()=0 |
| Process all pending events (for synchronous testing) | |
| virtual bool | waitForEvent (Event &outEvent, uint32_t timeoutMs)=0 |
| Wait for next event (blocking, for FreeRTOS tasks) | |
Interface for event bus.
Provides publish-subscribe mechanism for event-driven architecture. Thread-safe implementation required for FreeRTOS multi-tasking.
|
virtualdefault |
|
pure virtual |
Process all pending events (for synchronous testing)
Implemented in FreeRtosEventBus.
|
pure virtual |
|
pure virtual |
Subscribe to specific event type.
| type | Event type to subscribe to |
| handler | Callback function called when event occurs |
Implemented in FreeRtosEventBus.
|
pure virtual |
Wait for next event (blocking, for FreeRTOS tasks)
| outEvent | Output event structure |
| timeoutMs | Timeout in milliseconds (portMAX_DELAY for infinite) |
Implemented in FreeRtosEventBus.