ifw-daq
2.1.0-pre1
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 120 of file status.hpp.
using daq::Status::TimePoint = std::chrono::time_point<std::chrono::steady_clock> |
Definition at line 121 of file status.hpp.
|
default |
|
explicitnoexcept |
Definition at line 77 of file status.cpp.
|
noexcept |
Definition at line 67 of file status.cpp.
|
default |
|
default |
|
noexcept |
Definition at line 91 of file status.cpp.
|
noexcept |
Definition at line 86 of file status.cpp.
Clear alert.
alerts | Container of alert to modify. |
alert | to set. |
Definition at line 20 of file status.cpp.
Set alert.
alerts | Container of alert to modify. |
alert | to set. |
Definition at line 9 of file status.cpp.
std::vector<Alert> daq::Status::alerts |
Active alerts.
Definition at line 143 of file status.hpp.
bool daq::Status::error = false |
Definition at line 139 of file status.hpp.
std::string daq::Status::file_id |
Definition at line 137 of file status.hpp.
std::string daq::Status::id |
Definition at line 136 of file status.hpp.
std::string daq::Status::result |
Path to resulting data product.
Definition at line 148 of file status.hpp.
State daq::Status::state = State::NotStarted |
Definition at line 138 of file status.hpp.
TimePoint daq::Status::timestamp |
Definition at line 149 of file status.hpp.