oa::LogComponent

A component is a small value, not a closed framework enum or a mutable registry entry. OA supplies neutral built-ins through Builtin; downstream libraries define their own named constexpr values from one-to-four-character tags without modifying OA or acquiring process-global state. namespace ChainLog { inline constexpr LogComponent Consensus{"CONS"}; }

Public Types

Public Methods

const char * oa::LogComponent::cStr()

Constructor & Destructor Documentation

oa::LogComponent::LogComponent( Builtin inBuiltin )
Intentionally implicit so existing LogComponent::Core-style built-ins remain ordinary component arguments rather than a second public type.

Parameters

inBuiltin
Builtin

oa::LogComponent::LogComponent( const char (&)[N] inTag )
No public source comment is attached to this declaration.

Parameters

inTag
const char (&)[N]

Public Method Documentation

const char * oa::LogComponent::cStr()
No public source comment is attached to this declaration.

Returns

const char *

The declared return value.