41template <
class T_topic,
class T_msg,
class T_data>
Definition ClearQueue.h:38
Definition EventEmitter.h:41
Definition EventListener.h:42
EventListener * stopListeningToEvent(T_topic topic)
Unsubscribe from events of a specific topic.
Definition EventListener.cpp:33
virtual void onEventReceived(T_topic topic, T_msg msg)=0
Handler called when an event is received.
bool isListeningToEvent(T_topic topic)
Check if this listener is subscribed to a specific topic.
Definition EventListener.cpp:39
virtual type_id getTypeId() const override
Get the type ID of this class for RTTI.
Definition EventListener.h:53
virtual ~EventListener()=default
Virtual destructor.
EventListener * listenToEvent(T_topic topic)
Subscribe to events of a specific topic.
Definition EventListener.cpp:27
static type_id getTypeId()
Get the unique type identifier for a given type T.
Definition TypeId.h:82
EventListener< unsigned int, int, Bytes > CoreEventListener
Type alias for the common EventListener configuration used in the core system.
Definition EventListener.h:100
const void * type_id
Type alias for a unique type identifier.
Definition TypeId.h:43
Contains all classes and functions related to the Uniot Core.