Manages the status of one or multiple modules inheriting from DiagnosticsModule.
More...
#include <fw/Status.h>
Manages the status of one or multiple modules inheriting from DiagnosticsModule.
◆ StatusMap
◆ getOverallStatus()
static Status::StatusMode getOverallStatus |
( |
StatusMap::const_iterator |
start, |
|
|
StatusMap::const_iterator |
end |
|
) |
| |
|
inlinestatic |
Return the overall (most severe) status from a range of status map entries.
◆ setID()
void setID |
( |
const std::string & |
id | ) |
|
|
inline |
Set the id that is used for displaying status messages.
◆ getStatus() [1/2]
Get the overall status mode defined by the status of all registered diagnostic modules.
◆ getStatus() [2/2]
Get the status of the specified diagnostic module.
◆ registerDiagnostics()
Register a new diagnostics module by specifying a name and a pointer to the module.
The status of this module is taken into account when getting the overall status using getStatus().
◆ unregisterDiagnostics() [1/2]
void unregisterDiagnostics |
( |
const std::string & |
name | ) |
|
Unregister a diagnostics module.
The status of this module will not longer contribute to the overall status.
◆ unregisterDiagnostics() [2/2]
Unregister a diagnostics module.
The status of this module will not longer contribute to the overall status.
◆ getDiagnosticModules()
std::vector<std::string> getDiagnosticModules |
( |
| ) |
const |
Get the list of all registered modules.
◆ getStatusMap() [1/2]
Gets the current status map.
◆ getStatusMap() [2/2]
Gets the current status map of the specified diagnostics module.
◆ reflect()
void reflect |
( |
Reflector & |
r | ) |
|
|
inline |
The documentation for this class was generated from the following file: