Home
Base module

DiagnosticManager

Registry and manager for diagnostic providers.

DiagnosticManager

#include <icy/diagnosticmanager.h>
class DiagnosticManager

Defined in src/base/include/icy/diagnosticmanager.h:150

Inherits: string, IDiagnostic >

Registry and manager for diagnostic providers.

List of all members

NameKindOwner
DiagnosticsCompletevariableDeclared here
DiagnosticManagerfunctionDeclared here
~DiagnosticManagerfunctionDeclared here
addDiagnosticfunctionDeclared here
freeDiagnosticfunctionDeclared here
getDiagnosticfunctionDeclared here
resetAllfunctionDeclared here
checkAllfunctionDeclared here
allCompletefunctionDeclared here
onDiagnosticStateChangefunctionDeclared here
KeyedStorefunctionInherited from KeyedStore
~KeyedStorefunctionInherited from KeyedStore
KeyedStorefunctionInherited from KeyedStore
operator=functionInherited from KeyedStore
KeyedStorefunctionInherited from KeyedStore
operator=functionInherited from KeyedStore
getfunctionInherited from KeyedStore
addfunctionInherited from KeyedStore
tryAddfunctionInherited from KeyedStore
putfunctionInherited from KeyedStore
erasefunctionInherited from KeyedStore
containsfunctionInherited from KeyedStore
emptyfunctionInherited from KeyedStore
sizefunctionInherited from KeyedStore
clearfunctionInherited from KeyedStore
mapfunctionInherited from KeyedStore
mapfunctionInherited from KeyedStore
beginfunctionInherited from KeyedStore
endfunctionInherited from KeyedStore
beginfunctionInherited from KeyedStore
endfunctionInherited from KeyedStore
_mapvariableInherited from KeyedStore
onAddfunctionInherited from KeyedStore
onRemovefunctionInherited from KeyedStore
MaptypedefInherited from KeyedStore

Inherited from KeyedStore

KindNameDescription
functionKeyedStoreDefaulted constructor.
function~KeyedStore virtual inline
functionKeyedStoreDeleted constructor.
functionoperator=Deleted assignment operator.
functionKeyedStoreDefaulted constructor.
functionoperator=Defaulted assignment operator.
functionget const inlineReturns the item for key, or nullptr if not found.
functionadd inlineInserts a uniquely owned item. Returns a reference to the stored item.
functiontryAdd inlineInserts if absent; returns false on duplicate (never throws).
functionput inlineInserts or replaces the item under key.
functionerase inlineRemoves and destroys the item under key.
functioncontains const inline
functionempty const inline
functionsize const inline
functionclear inline
functionmap inlineDirect map access for iteration.
functionmap const inline
functionbegin inline
functionend inline
functionbegin const inline
functionend const inline
variable_map
functiononAdd virtual inlineOverride for lifecycle reactions.
functiononRemove virtual inline
typedefMap

Public Attributes

ReturnNameDescription
NullSignalDiagnosticsComplete

DiagnosticsComplete

NullSignal DiagnosticsComplete

Defined in src/base/include/icy/diagnosticmanager.h:169

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()

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) const

Defined 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() const

Defined in src/base/include/icy/diagnosticmanager.h:167


onDiagnosticStateChange

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

Defined in src/base/include/icy/diagnosticmanager.h:171