|
ifw-daq 3.1.0
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::system_clock > |
| using | Clock = TimePoint::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, 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 |
| std::vector< Alert > | alerts |
| Active alerts. | |
| std::map< std::size_t, ReceiverStatus > | receivers |
| Receiver processing (e.g. | |
| std::string | result |
| Path to resulting data product. | |
| TimePoint | timestamp |
| Timestamp of last update. | |
Related Functions | |
(Note that these are not member functions.) | |
| void | SetAlert (std::vector< Alert > &alerts, Alert alert) |
| Set alert. | |
| bool | ClearAlert (std::vector< Alert > &alerts, AlertId const &alert) |
| Clear alert. | |
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 164 of file status.hpp.
| using daq::Status::Clock = TimePoint::clock |
Definition at line 166 of file status.hpp.
| using daq::Status::TimePoint = std::chrono::time_point<std::chrono::system_clock> |
Definition at line 165 of file status.hpp.
|
default |
|
explicitnoexcept |
| id | DAQ id |
| file_id | File identifier (OLAS compatible). |
Definition at line 161 of file status.cpp.
|
noexcept |
Definition at line 152 of file status.cpp.
|
default |
|
default |
|
noexcept |
Definition at line 175 of file status.cpp.
|
noexcept |
Definition at line 170 of file status.cpp.
Clear alert.
| alerts | Container of alert to modify. |
| alert | to clear. If key is '*' then all alerts with matching category is cleared. |
Definition at line 31 of file status.cpp.
Set alert.
| alerts | Container of alert to modify. |
| alert | to set. |
Definition at line 20 of file status.cpp.
| std::vector<Alert> daq::Status::alerts |
Active alerts.
Definition at line 190 of file status.hpp.
| std::string daq::Status::file_id |
Definition at line 185 of file status.hpp.
| std::string daq::Status::id |
Definition at line 184 of file status.hpp.
| std::map<std::size_t, ReceiverStatus> daq::Status::receivers |
Receiver processing (e.g.
olas or rsync) status.
Key represents corresponding DpSpec::receivers index.
Definition at line 197 of file status.hpp.
| std::string daq::Status::result |
Path to resulting data product.
Definition at line 202 of file status.hpp.
| State daq::Status::state = State::NotStarted |
Definition at line 186 of file status.hpp.
| TimePoint daq::Status::timestamp |
Timestamp of last update.
Definition at line 207 of file status.hpp.