ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
Non observable status object that keeps stores status of data acquisition. More...
#include <status.hpp>
Public Types | |
using | TimePoint = std::chrono::time_point< std::chrono::steady_clock > |
Public Member Functions | |
Status ()=default | |
Status (std::string id, std::string file_id) noexcept | |
Status (std::string id, std::string file_id, State state, bool error, TimePoint timestamp) noexcept | |
Status (Status &&)=default | |
Status (Status const &)=default | |
Status & | operator= (Status &&)=default |
Status & | operator= (Status const &)=default |
bool | operator== (Status const &rhs) const noexcept |
bool | operator!= (Status const &rhs) const noexcept |
Public Attributes | |
std::string | id |
std::string | file_id |
State | state = State::NotStarted |
bool | error = false |
std::vector< Alert > | alerts |
Active alerts. More... | |
std::string | result |
Path to resulting data product. More... | |
TimePoint | timestamp |
Related Functions | |
(Note that these are not member functions.) | |
void | SetAlert (std::vector< Alert > &alerts, Alert alert) |
Set alert. More... | |
bool | ClearAlert (std::vector< Alert > &alerts, AlertId const &alert) |
Clear alert. More... | |
Non observable status object that keeps stores status of data acquisition.
It is also planned to be serializable to allow crash recovery from persistent storage.
Definition at line 124 of file status.hpp.
using daq::Status::TimePoint = std::chrono::time_point<std::chrono::steady_clock> |
Definition at line 125 of file status.hpp.
|
default |
|
explicitnoexcept |
Definition at line 108 of file status.cpp.
|
noexcept |
Definition at line 98 of file status.cpp.
|
default |
|
default |
|
noexcept |
Definition at line 122 of file status.cpp.
|
noexcept |
Definition at line 117 of file status.cpp.
Clear alert.
alerts | Container of alert to modify. |
alert | to set. |
Definition at line 30 of file status.cpp.
Set alert.
alerts | Container of alert to modify. |
alert | to set. |
Definition at line 19 of file status.cpp.
std::vector<Alert> daq::Status::alerts |
Active alerts.
Definition at line 147 of file status.hpp.
bool daq::Status::error = false |
Definition at line 143 of file status.hpp.
std::string daq::Status::file_id |
Definition at line 141 of file status.hpp.
std::string daq::Status::id |
Definition at line 140 of file status.hpp.
std::string daq::Status::result |
Path to resulting data product.
Definition at line 152 of file status.hpp.
State daq::Status::state = State::NotStarted |
Definition at line 142 of file status.hpp.
TimePoint daq::Status::timestamp |
Definition at line 153 of file status.hpp.