|
ifw-daq
3.0.1
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, 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::map< std::size_t, ReceiverStatus > | receivers |
| Receiver processing (e.g. More... | |
| std::string | result |
| Path to resulting data product. More... | |
| TimePoint | timestamp |
| Timestamp of last update. More... | |
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 153 of file status.hpp.
| using daq::Status::Clock = TimePoint::clock |
Definition at line 155 of file status.hpp.
| using daq::Status::TimePoint = std::chrono::time_point<std::chrono::system_clock> |
Definition at line 154 of file status.hpp.
|
default |
|
explicitnoexcept |
| id | DAQ id |
| file_id | File identifier (OLAS compatible). |
Definition at line 157 of file status.cpp.
|
noexcept |
Definition at line 146 of file status.cpp.
|
default |
|
default |
|
noexcept |
Definition at line 172 of file status.cpp.
|
noexcept |
Definition at line 167 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 181 of file status.hpp.
| bool daq::Status::error = false |
Definition at line 177 of file status.hpp.
| std::string daq::Status::file_id |
Definition at line 175 of file status.hpp.
| std::string daq::Status::id |
Definition at line 174 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 188 of file status.hpp.
| std::string daq::Status::result |
Path to resulting data product.
Definition at line 193 of file status.hpp.
| State daq::Status::state = State::NotStarted |
Definition at line 176 of file status.hpp.
| TimePoint daq::Status::timestamp |
Timestamp of last update.
Definition at line 198 of file status.hpp.