Base module
DiagnosticManager
Registry and manager for diagnostic providers.
DiagnosticManager
#include <icy/diagnosticmanager.h>class DiagnosticManagerDefined in src/base/include/icy/diagnosticmanager.h:150
Inherits:
string, IDiagnostic >
Registry and manager for diagnostic providers.
List of all members
| Name | Kind | Owner |
|---|---|---|
DiagnosticsComplete | variable | Declared here |
DiagnosticManager | function | Declared here |
~DiagnosticManager | function | Declared here |
addDiagnostic | function | Declared here |
freeDiagnostic | function | Declared here |
getDiagnostic | function | Declared here |
resetAll | function | Declared here |
checkAll | function | Declared here |
allComplete | function | Declared here |
onDiagnosticStateChange | function | Declared here |
KeyedStore | function | Inherited from KeyedStore |
~KeyedStore | function | Inherited from KeyedStore |
KeyedStore | function | Inherited from KeyedStore |
operator= | function | Inherited from KeyedStore |
KeyedStore | function | Inherited from KeyedStore |
operator= | function | Inherited from KeyedStore |
get | function | Inherited from KeyedStore |
add | function | Inherited from KeyedStore |
tryAdd | function | Inherited from KeyedStore |
put | function | Inherited from KeyedStore |
erase | function | Inherited from KeyedStore |
contains | function | Inherited from KeyedStore |
empty | function | Inherited from KeyedStore |
size | function | Inherited from KeyedStore |
clear | function | Inherited from KeyedStore |
map | function | Inherited from KeyedStore |
map | function | Inherited from KeyedStore |
begin | function | Inherited from KeyedStore |
end | function | Inherited from KeyedStore |
begin | function | Inherited from KeyedStore |
end | function | Inherited from KeyedStore |
_map | variable | Inherited from KeyedStore |
onAdd | function | Inherited from KeyedStore |
onRemove | function | Inherited from KeyedStore |
Map | typedef | Inherited from KeyedStore |
Inherited from KeyedStore
| Kind | Name | Description |
|---|---|---|
function | KeyedStore | Defaulted constructor. |
function | ~KeyedStore virtual inline | |
function | KeyedStore | Deleted constructor. |
function | operator= | Deleted assignment operator. |
function | KeyedStore | Defaulted constructor. |
function | operator= | Defaulted assignment operator. |
function | get const inline | Returns the item for key, or nullptr if not found. |
function | add inline | Inserts a uniquely owned item. Returns a reference to the stored item. |
function | tryAdd inline | Inserts if absent; returns false on duplicate (never throws). |
function | put inline | Inserts or replaces the item under key. |
function | erase inline | Removes and destroys the item under key. |
function | contains const inline | |
function | empty const inline | |
function | size const inline | |
function | clear inline | |
function | map inline | Direct map access for iteration. |
function | map const inline | |
function | begin inline | |
function | end inline | |
function | begin const inline | |
function | end const inline | |
variable | _map | |
function | onAdd virtual inline | Override for lifecycle reactions. |
function | onRemove virtual inline | |
typedef | Map |
Public Attributes
| Return | Name | Description |
|---|---|---|
NullSignal | DiagnosticsComplete |
DiagnosticsComplete
NullSignal DiagnosticsCompleteDefined in src/base/include/icy/diagnosticmanager.h:169
Public Methods
| Return | Name | Description |
|---|---|---|
DiagnosticManager | ||
bool | addDiagnostic | Adds a diagnostic, taking ownership. |
bool | freeDiagnostic | Removes and deletes the diagnostic registered under name. |
IDiagnostic * | getDiagnostic const | Returns the diagnostic or nullptr. |
void | resetAll | |
void | checkAll | |
bool | allComplete const | |
void | onDiagnosticStateChange |
DiagnosticManager
DiagnosticManager()Defined in src/base/include/icy/diagnosticmanager.h:153
addDiagnostic
bool addDiagnostic(std::unique_ptr< IDiagnostic > test)Defined in src/base/include/icy/diagnosticmanager.h:157
Adds a diagnostic, taking ownership.
freeDiagnostic
bool freeDiagnostic(const std::string & name)Defined in src/base/include/icy/diagnosticmanager.h:160
Removes and deletes the diagnostic registered under name.
getDiagnostic
const
IDiagnostic * getDiagnostic(const std::string & name) constDefined in src/base/include/icy/diagnosticmanager.h:163
Returns the diagnostic or nullptr.
resetAll
void resetAll()Defined in src/base/include/icy/diagnosticmanager.h:165
checkAll
void checkAll()Defined in src/base/include/icy/diagnosticmanager.h:166
allComplete
const
bool allComplete() constDefined in src/base/include/icy/diagnosticmanager.h:167
onDiagnosticStateChange
void onDiagnosticStateChange(void *, DiagnosticState & state, constDiagnosticState &)