|
libxr
1.0
Want to be the best embedded framework
|
logger 对外包含入口 / Public include entry for logger
More...
Enumerations | |
| enum class | Frontend : uint8_t { Auto , Format , Printf } |
| Logger literal frontend selection mode. More... | |
| enum class | Resolution : uint8_t { None , Format , Printf , Ambiguous } |
| Result of resolving one logger literal against the available frontends. More... | |
Functions | |
| template<Print::Text Source> | |
| consteval bool | UsesFormatSyntax () |
| Returns whether one valid brace literal actually uses brace syntax. | |
| template<Print::Text Source> | |
| consteval bool | UsesPrintfSyntax () |
| Returns whether one valid printf literal actually uses printf syntax. | |
| template<Print::Text Source> | |
| consteval bool | FormatSourceValid () |
| Returns whether one brace-style source is source-level valid. | |
| template<Print::Text Source> | |
| consteval bool | PrintfSourceValid () |
| Returns whether one printf-style source is source-level valid. | |
| template<Print::Text Source, typename... Args> | |
| consteval bool | FormatMatches () |
| Returns whether one argument list is accepted by the brace frontend, guarded by source-level validity first. | |
| template<Print::Text Source, typename... Args> | |
| consteval bool | PrintfMatches () |
| Returns whether one argument list is accepted by the printf frontend, guarded by source-level validity first. | |
| template<Frontend Forced, Print::Text Source, typename... Args> | |
| consteval Resolution | ResolveFrontend () |
| Selects the logger frontend for one literal plus one concrete argument list. | |
| template<Frontend Forced, Print::Text Source, typename... Args> | |
| consteval Frontend | SelectFrontend () |
| Selects the final logger frontend after validating the resolution result. | |
logger 对外包含入口 / Public include entry for logger
logger 字面量前端解析片段 / Logger literal-frontend resolution fragment
Logger 的字面量前端选择片段 Literal-frontend selection fragment of Logger
|
strong |
Logger literal frontend selection mode.
Logger 字面量前端选择模式。
| Enumerator | |
|---|---|
| Auto | select brace or printf automatically / 自动选择 brace 或 printf |
| Format | force brace-style frontend / 强制使用 brace 风格前端 |
| Printf | force printf-style frontend / 强制使用 printf 风格前端 |
Definition at line 19 of file logger.hpp.
|
strong |
Result of resolving one logger literal against the available frontends.
将一条 logger 字面量与可用前端进行解析后的结果。
Definition at line 31 of file logger.hpp.
|
nodiscardconsteval |
Returns whether one argument list is accepted by the brace frontend, guarded by source-level validity first.
判断一组参数是否能被 brace 前端接受;会先做源级合法性保护。
Logger auto-detection must not treat extra call-site arguments as harmless for brace literals, otherwise unsupported printf-like sources can fall back to brace plain text and silently drop their arguments. logger 自动检测不能把多余实参当作 brace 字面量的无害输入,否则不受支持的 printf 风格源串可能回退成 brace 纯文本并静默丢弃实参。
Definition at line 107 of file logger.hpp.
|
nodiscardconsteval |
Returns whether one brace-style source is source-level valid.
判断一条 brace 风格源串在源级上是否合法。
Definition at line 78 of file logger.hpp.
|
nodiscardconsteval |
Returns whether one argument list is accepted by the printf frontend, guarded by source-level validity first.
判断一组参数是否能被 printf 前端接受;会先做源级合法性保护。
Definition at line 125 of file logger.hpp.
|
nodiscardconsteval |
Returns whether one printf-style source is source-level valid.
判断一条 printf 风格源串在源级上是否合法。
Definition at line 89 of file logger.hpp.
|
nodiscardconsteval |
Selects the logger frontend for one literal plus one concrete argument list.
为一条 logger 字面量及一组具体参数选择前端。
Definition at line 143 of file logger.hpp.
|
nodiscardconsteval |
Selects the final logger frontend after validating the resolution result.
在校验解析结果后,选择最终 logger 前端。
Definition at line 198 of file logger.hpp.
|
nodiscardconsteval |
Returns whether one valid brace literal actually uses brace syntax.
判断一条合法 brace 字面量是否真的使用了 brace 语法。
Definition at line 44 of file logger.hpp.
|
nodiscardconsteval |
Returns whether one valid printf literal actually uses printf syntax.
判断一条合法 printf 字面量是否真的使用了 printf 语法。
Definition at line 61 of file logger.hpp.