|
RTC Toolkit
2.0.0
|
Interface to observe alert status. More...
#include <alertServiceIf.hpp>
Classes | |
| struct | AlertStatus |
| Structure describing an alert condition with status from the corresponding AlertSource. More... | |
Public Types | |
| using | ReducedStatus = std::optional< bool > |
| Represents current alert status. More... | |
| using | TimePoint = std::chrono::system_clock::time_point |
| Timestamp type used throughout AlertServiceIf. More... | |
Public Member Functions | |
| virtual | ~AlertStatusObserverIf () noexcept=default |
Accessors | |
| virtual ReducedStatus | GetReducedStatus () const =0 |
| Get the reduced status. More... | |
| virtual std::vector< AlertStatus > | GetAlertStatuses () const =0 |
| Get status of all alert conditions. More... | |
Signals | |
| using | ReducedStatusSignal = boost::signals2::signal< void(ReducedStatus const &, std::vector< AlertStatus > const &)> |
| Signal emitted for every change in reduced alert status. More... | |
| virtual boost::signals2::connection | ConnectReducedStatus (ReducedStatusSignal::slot_type slot)=0 |
| Connects a slot to the reduced alert signal. More... | |
Interface to observe alert status.
| using rtctk::componentFramework::AlertStatusObserverIf::ReducedStatus = std::optional<bool> |
Represents current alert status.
true means there is at least one AlertSource with an active alert.false means all AlertSources are inactive.std::nullopt means the status is indeterminate. | using rtctk::componentFramework::AlertStatusObserverIf::ReducedStatusSignal = boost::signals2::signal<void( ReducedStatus const&, std::vector<AlertStatus> const&)> |
Signal emitted for every change in reduced alert status.
The reduced signal is the reduced status of all alert sources, combined as follows:
Signal arguments are:
| using rtctk::componentFramework::AlertStatusObserverIf::TimePoint = std::chrono::system_clock::time_point |
Timestamp type used throughout AlertServiceIf.
|
virtualdefaultnoexcept |
|
pure virtual |
Connects a slot to the reduced alert signal.
See ReducedStatusSignal for description.
| slot | signal slot invoked by unspecified thread when reduced status signal is emitted. |
Implemented in rtctk::componentFramework::AlertService.
|
pure virtual |
Get status of all alert conditions.
Implemented in rtctk::componentFramework::AlertService.
|
pure virtual |
Get the reduced status.
Implemented in rtctk::componentFramework::AlertService.