An abstract class the enables a supervision method to report its elementary supervion status. More...
#include <elementary_supervision.h>
Public Member Functions | |
| SupervisionStatus | GetStatus () const noexcept |
| Get the supervision status. More... | |
| TypeOfSupervision | GetType () const noexcept |
| Get the type of supervision. More... | |
| void | SetCallback (std::function< void(SupervisionStatus)> &&callback) |
| Set a callback to be invoked on the supervision status change. More... | |
Protected Member Functions | |
| ElementarySupervision (TypeOfSupervision supervisionType) noexcept | |
| Constructor. More... | |
| void | Report (SupervisionStatus status) |
| Report the new supervision status. More... | |
An abstract class the enables a supervision method to report its elementary supervion status.
|
protectednoexcept |
Constructor.
| supervisionType | Type of supervision method |
|
noexcept |
Get the supervision status.
|
noexcept |
Get the type of supervision.
|
protected |
Report the new supervision status.
| status | New status of the supervision method |
| void ara::phm::supervisors::ElementarySupervision::SetCallback | ( | std::function< void(SupervisionStatus)> && | callback | ) |
Set a callback to be invoked on the supervision status change.
| callback | On supervision status changed callback |