oa::Validation
— global validation controller
Static Public Methods
Public Method Documentation
log all non-zero counters at Debug level.
Parameters
inCompoa::LogComponentDefault: oa::LogComponent::Core
Returns
voidThe declared return value.
Enable / disable. Debug: on by default. release (OA_ENABLE_VALIDATION): off by default. call initFromEnv() once at startup to apply OA_VALIDATION / OA_VALIDATION_SEVERITY.
Parameters
inEnableboolDefault: true
Returns
voidThe declared return value.
Returns current counter value (0 if never incremented or in release).
Parameters
inNameconst char *—
Returns
oa::U64The declared return value.
No public source comment is attached to this declaration.
Returns
ValidationSeverityThe declared return value.
Increment a named counter (thread-safe, lock-free on the hot path).
Parameters
inNameconst char *—
Returns
voidThe declared return value.
Increment using a runtime string variable (for kernel names, etc.).
Parameters
inNameconst char *—
Returns
voidThe declared return value.
Read OA_VALIDATION and OA_VALIDATION_SEVERITY from the process environment. call once before any OA_VALIDATE macro fires (e.g. Engine::create).
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
Internal: called by OA_VALIDATE macros. Formats message, calls callback. Returns oa::Status::error on Error/Fatal severity; ok on lower severity.
Parameters
inSevValidationSeverity—
inCompoa::LogComponent—
inFmtconst char *—
Returns
oa::StatusThe declared return value.
reset all counters to 0.
Returns
voidThe declared return value.
Optional custom callback; default writes via oa::Log*.
Parameters
inCbCallback—
Returns
voidThe declared return value.
Override severity filter (default: Verbose in debug, warning in release).
Parameters
inSevValidationSeverity—
Returns
voidThe declared return value.