Base module

DiagnosticManager

Registry and manager for diagnostic providers.

DiagnosticManager

#include <icy/diagnosticmanager.h>

Inherits: string, IDiagnostic >

Registry and manager for diagnostic providers.

Public Attributes

ReturnNameDescription
NullSignalDiagnosticsComplete

DiagnosticsComplete

NullSignal DiagnosticsComplete

Public Methods

ReturnNameDescription
DiagnosticManager
booladdDiagnosticAdds a diagnostic, taking ownership.
boolfreeDiagnosticRemoves and deletes the diagnostic registered under name.
IDiagnostic *getDiagnostic constReturns the diagnostic or nullptr.
voidresetAll
voidcheckAll
boolallComplete const
voidonDiagnosticStateChange

DiagnosticManager

DiagnosticManager()

addDiagnostic

bool addDiagnostic(std::unique_ptr< IDiagnostic > test)

Adds a diagnostic, taking ownership.


freeDiagnostic

bool freeDiagnostic(const std::string & name)

Removes and deletes the diagnostic registered under name.


getDiagnostic

const

IDiagnostic * getDiagnostic(const std::string & name) const

Returns the diagnostic or nullptr.


resetAll

void resetAll()

checkAll

void checkAll()

allComplete

const

bool allComplete() const

onDiagnosticStateChange

void onDiagnosticStateChange(void *, DiagnosticState & state, constDiagnosticState &)