|
RTC Toolkit
2.0.0
|
Implementation of AlertIf. More...
#include <alertService.hpp>
Public Member Functions | |
| AlertService (log4cplus::Logger logger) | |
| ~AlertService () noexcept | |
| Destructor will automatically stop notifier. More... | |
| boost::signals2::connection | ConnectReducedStatus (ReducedStatusSignal::slot_type slot) override |
| Connects a slot to the reduced alert signal. More... | |
| AlertSource | MakeAlertSource (AlertDescription const &description) override |
| Creates a new alert source for the specified alert condition. More... | |
| ReducedStatus | GetReducedStatus () const override |
| Get the reduced status. More... | |
| std::vector< AlertStatus > | GetAlertStatuses () const override |
| Get status of all alert conditions. More... | |
Public Member Functions inherited from rtctk::componentFramework::AlertServiceIf | |
| virtual | ~AlertServiceIf () noexcept=default |
Public Member Functions inherited from rtctk::componentFramework::AlertStatusObserverIf | |
| virtual | ~AlertStatusObserverIf () noexcept=default |
Public Member Functions inherited from rtctk::componentFramework::AlertSourceFactoryIf | |
| virtual | ~AlertSourceFactoryIf () noexcept=default |
Additional Inherited Members | |
Public Types inherited from rtctk::componentFramework::AlertStatusObserverIf | |
| using | ReducedStatus = std::optional< bool > |
| Represents current alert status. More... | |
| using | TimePoint = std::chrono::system_clock::time_point |
| Timestamp type used throughout AlertServiceIf. More... | |
| using | ReducedStatusSignal = boost::signals2::signal< void(ReducedStatus const &, std::vector< AlertStatus > const &)> |
| Signal emitted for every change in reduced alert status. More... | |
Implementation of AlertIf.
|
explicit |
| logger | Logger instance to use. |
|
noexcept |
Destructor will automatically stop notifier.
|
overridevirtual |
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. |
Implements rtctk::componentFramework::AlertStatusObserverIf.
|
overridevirtual |
Get status of all alert conditions.
Implements rtctk::componentFramework::AlertStatusObserverIf.
|
overridevirtual |
Get the reduced status.
Implements rtctk::componentFramework::AlertStatusObserverIf.
|
overridevirtual |
Creates a new alert source for the specified alert condition.
| condition | for which to create an AlertSource of. |
| AlertConflictException | if another alert source is alive with the same AlertDescription::GetId(). |
| RtctkException | if other exceptions occurs (nested). |
Implements rtctk::componentFramework::AlertSourceFactoryIf.