15 std::string description,
16 std::optional<Status> status) noexcept
17 : timestamp(TimePoint::clock::now()), id(std::move(
id)), description(std::move(description)), status(std::move(status)) {
21 return id == rhs.id && description == rhs.description && status == rhs.status;
25 return !(*
this == rhs);
29 std::string description,
30 std::optional<Status> status,
31 std::string origin) noexcept
32 :
GenericEvent(std::move(
id), std::move(description), std::move(status))
33 , origin(std::move(origin)) {
41 return !(*
this == rhs);
45 os <<
"ErrorEvent(id='" << s.
id <<
"', description=" << s.
description
51 os <<
"ErrorEvent(id='" << s.
id <<
"', origin=" << s.
origin <<
", description=" << s.
description
58 m_event_log.
events.emplace_back(std::move(event));
void AddEvent(EventLog::EventType event)
Records that a file has been produced for this data acquisition.
Contains declaration for EventLog, ObservableEventLog and related events.
daqif::DaqStatus & operator<<(daqif::DaqStatus &status, daq::Status const &rhs)
Convert daq::Status -> daqif::DaqStatus by populating from rhs.
ErrorEvent(std::string id, std::string description, std::optional< Status > status, std::string origin) noexcept
bool operator!=(ErrorEvent const &rhs) const noexcept
std::string origin
Error origin.
bool operator==(ErrorEvent const &rhs) const noexcept
std::variant< ActionEvent, UserActionEvent, GenericEvent, ErrorEvent > EventType
std::vector< EventType > events
Represents a generic event if a more specific event is not usable.
bool operator!=(GenericEvent const &rhs) const noexcept
GenericEvent(std::string id, std::string description, std::optional< Status > status) noexcept
bool operator==(GenericEvent const &rhs) const noexcept