11#ifndef RTCTK_COMPONENTFRAMEWORK_ALERTSERVICEIF_HPP
12#define RTCTK_COMPONENTFRAMEWORK_ALERTSERVICEIF_HPP
80 const std::string&
GetId()
const;
96 void Set(
bool state =
true);
AlertConflictException(const std::string &id)
Definition alertService.cpp:41
Alert Service interface.
Definition alertServiceIf.hpp:138
virtual void ClearAll()=0
Clears all active alerts.
virtual bool GetStatus()=0
Returns the overall alert status.
virtual ~AlertServiceIf()=default
virtual AlertSource MakeAlertSource(const std::string &id, const std::string &text)=0
Creates a new alert source for a specified alert condition.
Models a single alert source that can be set or cleared.
Definition alertServiceIf.hpp:47
void Set(bool state=true)
Set alert status state.
Definition alertService.cpp:190
void Clear()
Clear alert.
Definition alertService.cpp:194
AlertSource()
Definition alertService.cpp:170
~AlertSource()
Resets alert.
Definition alertService.cpp:173
AlertSource(const AlertSource &other)=delete
No copy of alert sources allowed, they must be moved.
bool IsSet()
Query alert status.
Definition alertService.cpp:198
const std::string & GetId() const
Get the alert identifier.
Definition alertService.cpp:182
AlertSource & operator=(AlertSource &&other) noexcept=default
Move assigns from other to this object.
AlertSource & operator=(const AlertSource &other)=delete
std::string GetText() const
Get the alert condition description.
Definition alertService.cpp:186
AlertSource(AlertSource &&other) noexcept=default
Move constructs from other to this object.
Definition alertService.hpp:141
RtctkException() noexcept
Definition exceptions.cpp:112
Provides macros and utilities for exception handling.
Definition commandReplier.cpp:21