15#include <switchboard/SBAny.hpp>
17namespace switchboard {
20using EventData =
SBAny;
23struct SWITCHBOARDSDK_EXPORT
Event {
41using EventCallback = std::function<void(
const Event&)>;
A versatile container class that can hold values of various types.
Definition SBAny.hpp:53
Represents an event that can be emitted and listened to.
Definition Event.hpp:23
std::string objectURI
URI of the object emitting the event.
Definition Event.hpp:28
int64_t timestamp
Timestamp of when the event was created (in milliseconds since epoch).
Definition Event.hpp:34
std::string name
Name of the event.
Definition Event.hpp:31
std::string id
Unique identifier for the event.
Definition Event.hpp:25
EventData data
Data associated with the event.
Definition Event.hpp:37