ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Go to the documentation of this file.
13 std::string description,
14 std::optional<Status> status) noexcept
15 : timestamp(TimePoint::clock::now()), id(std::move(
id)), description(std::move(description)), status(std::move(status)) {
19 return id == rhs.id && description == rhs.description && status == rhs.status;
23 return !(*
this == rhs);
27 std::string description,
28 std::optional<Status> status,
29 std::string origin) noexcept
30 :
GenericEvent(std::move(
id), std::move(description), std::move(status))
31 , origin(std::move(origin)) {
39 return !(*
this == rhs);
43 os <<
"ErrorEvent(id='" << s.
id <<
"', description=" << s.
description
49 os <<
"ErrorEvent(id='" << s.
id <<
"', origin=" << s.
origin <<
", description=" << s.
description
56 m_event_log.
events.emplace_back(std::move(event));
bool operator==(ErrorEvent const &rhs) const noexcept
GenericEvent(std::string id, std::string description, std::optional< Status > status) noexcept
bool operator!=(ErrorEvent const &rhs) const noexcept
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.
std::vector< EventType > events
ErrorEvent(std::string id, std::string description, std::optional< Status > status, std::string origin) noexcept
bool operator!=(GenericEvent const &rhs) const noexcept
std::string origin
Error origin.
bool operator==(GenericEvent const &rhs) const noexcept
std::variant< ActionEvent, UserActionEvent, GenericEvent, ErrorEvent > EventType
Represents a generic event if a more specific event is not usable.
void AddEvent(EventLog::EventType event)
Records that a file has been produced for this data acquisition.