ORE Studio 0.0.4
Loading...
Searching...
No Matches
event_traits< Event > Struct Template Reference

Traits template for mapping event types to their logical names. More...

#include <event_traits.hpp>

Collaboration diagram for event_traits< Event >:
Collaboration graph

Detailed Description

template<typename Event>
struct ores::eventing::domain::event_traits< Event >

Traits template for mapping event types to their logical names.

Each domain event should specialize this template to provide its string identifier used in the notification protocol.

Example:

template<>
struct event_traits<currency_changed_event> {
static constexpr std::string_view name = "ores.risk.currency_changed";
};
Traits template for mapping event types to their logical names.
Definition event_traits.hpp:44
Template Parameters
EventThe event type.