|
conduit 0.6.0
Modern C++23 header-only event-dispatching / event-transport library
|
CRTP library base for conduit events. More...
#include <event.hpp>


Static Public Member Functions | |
| static auto | field_descriptors () |
| static parcel::DisplayInfo | display_info () |
| Cell-level descriptive display info. | |
Static Public Attributes | |
| static constexpr std::string_view | event_name_v = Name.view() |
Bare event name (Name) — used by the bus to key listeners. | |
| static constexpr std::string_view | kind_id = parcel::id_join_v<event_kind_prefix, event_name_v> |
Wire-stable kind id ("conduit:event:" + Name). | |
CRTP library base for conduit events.
Self is the deriving event type (CRTP self); Name is the bare event name (no prefix). The wire kind_id is synthesized as "conduit:event:<Name>"; the bare event name is exposed via event_name_v for bus dispatch.
Each user event must provide:
static auto& event_field_descriptors(parcel::FieldsBuilder<Self>&) — declares the event's fields.from_json builds via std::make_shared<Self>()).
|
inlinestatic |
Cell-level descriptive display info.
Defaults to empty; user events may shadow this static to attach name/description for tooling.
|
inlinestatic |
|
staticconstexpr |
Bare event name (Name) — used by the bus to key listeners.
|
staticconstexpr |
Wire-stable kind id ("conduit:event:" + Name).