Models a single alert source that can be set or cleared.
More...
#include <rtctk/componentFramework/alertServiceIf.hpp>
Models a single alert source that can be set or cleared.
Instances should be created from AlertServiceIf::MakeAlertSource.
Changes to the state are emitted as signal to connected observers.
- Thread Safety
- thread-safe
◆ AlertSource() [1/4]
| rtctk::componentFramework::AlertSource::AlertSource |
( |
| ) |
|
◆ AlertSource() [2/4]
| rtctk::componentFramework::AlertSource::AlertSource |
( |
AlertStatus & | status, |
|
|
const std::string & | id, |
|
|
const std::string & | text ) |
◆ ~AlertSource()
| rtctk::componentFramework::AlertSource::~AlertSource |
( |
| ) |
|
◆ AlertSource() [3/4]
| rtctk::componentFramework::AlertSource::AlertSource |
( |
const AlertSource & | other | ) |
|
|
delete |
No copy of alert sources allowed, they must be moved.
◆ AlertSource() [4/4]
| rtctk::componentFramework::AlertSource::AlertSource |
( |
AlertSource && | other | ) |
|
|
defaultnoexcept |
Move constructs from other to this object.
- Postcondition
- Other is in a moved-from state where it is only safe to destroy or move-assign it.
◆ Clear()
| void rtctk::componentFramework::AlertSource::Clear |
( |
| ) |
|
Clear alert.
If alert changes state the signal is emitted.
- Postcondition
IsSet() == false
◆ GetId()
| std::string rtctk::componentFramework::AlertSource::GetId |
( |
| ) |
const |
Get the alert identifier.
◆ GetText()
| std::string rtctk::componentFramework::AlertSource::GetText |
( |
| ) |
const |
Get the alert condition description.
◆ IsSet()
| bool rtctk::componentFramework::AlertSource::IsSet |
( |
| ) |
|
Query alert status.
- Returns
- true if alert is set.
◆ operator=() [1/2]
Move assigns from other to this object.
- Postcondition
- Other is in a moved-from state where it is only safe to destroy or move-assign it.
◆ operator=() [2/2]
◆ Set()
| void rtctk::componentFramework::AlertSource::Set |
( |
bool | state = true | ) |
|
Set alert status state.
If alert changes state the signal is emitted.
- Parameters
-
- Postcondition
IsSet() == state
The documentation for this class was generated from the following files: