IEvents#

Fully qualified name: carb::events::IEvents

Defined in carb/events/IEvents.h

struct IEvents#

Interface definition for carb.events.

Public Functions

virtual IEventStream *createEventStreamPtr() = 0#

Create new event stream.

  • Deprecated since version ``carb::events::IEvents::internalCreateEventStream``: instead.

Returns:

A pointer to the new event stream.

virtual SenderId acquireUniqueSenderId() = 0#

Get a unique sender identifier.

Note

The sender identifier may be a previously released sender identifier.

Returns:

A unique sender identifier. When finished with the sender identifier, it should be returned with releaseUniqueSenderId().

virtual void releaseUniqueSenderId(SenderId senderId) = 0#

Releases a unique sender identifier previously acquired with acquireUniqueSenderId().

Parameters:

senderId – The previously acquired senderId.

inline IEventStreamPtr createEventStream(
cpp::string_view name = {},
) noexcept#

Create new event stream.

Parameters:

name – An optional name to give the event stream for logging and profiling. Names do not need to be unique but are recommended to be unique.

Returns:

A pointer to the new event stream.

inline IEventStreamPtr createEventStream(
cpp::unbounded_string name,
) noexcept#

Create new event stream.

Parameters:

name – An optional name to give the event stream for logging and profiling. Names do not need to be unique but are recommended to be unique.

Returns:

A pointer to the new event stream.

Public Static Functions

static inline constexpr carb::InterfaceDesc getInterfaceDesc(
) noexcept#

Returns information about this interface.

Auto-generated by CARB_PLUGIN_INTERFACE() or CARB_PLUGIN_INTERFACE_EX.

Returns:

The carb::InterfaceDesc struct with information about this interface.

static inline constexpr carb::InterfaceDesc getLatestInterfaceDesc(
) noexcept#

Returns information about the latest version of this interface.

Auto-generated by CARB_PLUGIN_INTERFACE() or CARB_PLUGIN_INTERFACE_EX.

Returns:

The carb::InterfaceDesc struct with information about the latest version of this interface.