Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::TimestampedEvent Concept Referenceexport

An event type that includes a timestamp. More...

#include <event.h>

Concept definition

template<typename T>
concept kcenon::common::concepts::TimestampedEvent = EventType<T> && requires(const T t) {
{ t.timestamp } -> std::convertible_to<std::chrono::steady_clock::time_point>;
}
A type that can be used as an event in the event bus.
Definition event.h:52
An event type that includes a timestamp.
Definition event.h:113

Detailed Description

An event type that includes a timestamp.

Events satisfying this concept provide timing information for ordering, debugging, and audit purposes.

Example usage:

template<TimestampedEvent E>
void log_event(const E& event) {
auto time = event.timestamp;
// Log with timestamp
}

Definition at line 113 of file event.h.