#include <VortexBootReport.h>
|
| void | Clear () noexcept |
| | Forget every entry (start of a new initialisation attempt).
|
| |
| bool | AddFailed (const char *component) noexcept |
| | Record a component that failed to initialise.
|
| |
| bool | AddWarning (const char *text) noexcept |
| | Record a warning (a degraded subsystem or an unusual condition that did not fail init).
|
| |
| size_t | FailedCount () const noexcept |
| |
| size_t | WarningCount () const noexcept |
| |
| size_t | Dropped () const noexcept |
| |
| const char * | Failed (size_t i) const noexcept |
| |
| const char * | Warning (size_t i) const noexcept |
| |
| size_t | CopyFailed (const char *out[], size_t max) const noexcept |
| | Copy up to max failed-component names into out.
|
| |
| size_t | CopyWarnings (const char *out[], size_t max) const noexcept |
| | Copy up to max warnings into out.
|
| |
|
| static constexpr size_t | kCapacity = 12 |
| | Capacity of each list (one entry per manager is enough for failures).
|
| |
|
| bool | Add (List &list, size_t &count, const char *text) noexcept |
| |
|
| static size_t | Copy (const List &list, size_t count, const char *out[], size_t max) noexcept |
| |
◆ List
◆ Add()
| bool VortexBootReport::Add |
( |
List & |
list, |
|
|
size_t & |
count, |
|
|
const char * |
text |
|
) |
| |
|
inlineprivatenoexcept |
◆ AddFailed()
| bool VortexBootReport::AddFailed |
( |
const char * |
component | ) |
|
|
inlinenoexcept |
Record a component that failed to initialise.
- Parameters
-
| component | String literal naming the component, e.g. "MotorController". |
- Returns
- true if recorded or already present; false if the list is full (counted in Dropped()).
◆ AddWarning()
| bool VortexBootReport::AddWarning |
( |
const char * |
text | ) |
|
|
inlinenoexcept |
Record a warning (a degraded subsystem or an unusual condition that did not fail init).
- Parameters
-
| text | String literal with static storage. |
- Returns
- true if recorded or already present; false if the list is full (counted in Dropped()).
◆ Clear()
| void VortexBootReport::Clear |
( |
| ) |
|
|
inlinenoexcept |
Forget every entry (start of a new initialisation attempt).
◆ Copy()
| static size_t VortexBootReport::Copy |
( |
const List & |
list, |
|
|
size_t |
count, |
|
|
const char * |
out[], |
|
|
size_t |
max |
|
) |
| |
|
inlinestaticprivatenoexcept |
◆ CopyFailed()
| size_t VortexBootReport::CopyFailed |
( |
const char * |
out[], |
|
|
size_t |
max |
|
) |
| const |
|
inlinenoexcept |
Copy up to max failed-component names into out.
- Returns
- number copied.
◆ CopyWarnings()
| size_t VortexBootReport::CopyWarnings |
( |
const char * |
out[], |
|
|
size_t |
max |
|
) |
| const |
|
inlinenoexcept |
Copy up to max warnings into out.
- Returns
- number copied.
◆ Dropped()
| size_t VortexBootReport::Dropped |
( |
| ) |
const |
|
inlinenoexcept |
◆ Failed()
| const char * VortexBootReport::Failed |
( |
size_t |
i | ) |
const |
|
inlinenoexcept |
◆ FailedCount()
| size_t VortexBootReport::FailedCount |
( |
| ) |
const |
|
inlinenoexcept |
◆ Warning()
| const char * VortexBootReport::Warning |
( |
size_t |
i | ) |
const |
|
inlinenoexcept |
◆ WarningCount()
| size_t VortexBootReport::WarningCount |
( |
| ) |
const |
|
inlinenoexcept |
◆ dropped_
| size_t VortexBootReport::dropped_ {0} |
|
private |
◆ failed_
| List VortexBootReport::failed_ {} |
|
private |
◆ failed_count_
| size_t VortexBootReport::failed_count_ {0} |
|
private |
◆ kCapacity
| constexpr size_t VortexBootReport::kCapacity = 12 |
|
staticconstexpr |
Capacity of each list (one entry per manager is enough for failures).
◆ warning_count_
| size_t VortexBootReport::warning_count_ {0} |
|
private |
◆ warnings_
| List VortexBootReport::warnings_ {} |
|
private |
The documentation for this class was generated from the following file: