libxr
Embedded C++ framework for bare-metal, RTOS and Linux
Loading...
Searching...
No Matches
LibXR::Print::FormatField Struct Reference

一条已经决定完毕、运行期 writer 知道如何打印的值字段 / One fully-decided value field that the runtime writer knows how to print. More...

#include <format_protocol.hpp>

Public Attributes

FormatType type = FormatType::End
 语义写出类别 / semantic render category
 
FormatPackKind pack {}
 运行期打包存储类别 / packed runtime storage kind
 
FormatArgumentRule rule
 编译期实参匹配规则 / compile-time argument rule
 
uint8_t flags = 0
 字段修饰位集合 / FormatFlag bitset
 
char fill = ' '
 字段填充字符 / field fill character
 
uint8_t width = 0
 已解析的字段宽度 / parsed field width
 
uint8_t precision = 0xFF
 已解析精度,或未指定 / parsed precision, or unspecified
 

Detailed Description

一条已经决定完毕、运行期 writer 知道如何打印的值字段 / One fully-decided value field that the runtime writer knows how to print.

它描述的是:

  • 该走哪条打印路径
  • 参数当时是怎么打包的
  • 编译期是按哪条规则接受这个参数的
  • 以及运行期仍然需要的宽度/填充/精度信息 It says:
  • which printing path to use
  • how the argument was packed
  • which compile-time rule accepted that argument
  • which width/fill/precision flags still matter at runtime

Definition at line 577 of file format_protocol.hpp.

Member Data Documentation

◆ fill

char LibXR::Print::FormatField::fill = ' '

字段填充字符 / field fill character

Definition at line 584 of file format_protocol.hpp.

◆ flags

uint8_t LibXR::Print::FormatField::flags = 0

字段修饰位集合 / FormatFlag bitset

Definition at line 583 of file format_protocol.hpp.

◆ pack

FormatPackKind LibXR::Print::FormatField::pack {}

运行期打包存储类别 / packed runtime storage kind

Definition at line 580 of file format_protocol.hpp.

580{};

◆ precision

uint8_t LibXR::Print::FormatField::precision = 0xFF

已解析精度,或未指定 / parsed precision, or unspecified

Definition at line 586 of file format_protocol.hpp.

◆ rule

FormatArgumentRule LibXR::Print::FormatField::rule
Initial value:
=
FormatArgumentRule::None

编译期实参匹配规则 / compile-time argument rule

Definition at line 581 of file format_protocol.hpp.

◆ type

FormatType LibXR::Print::FormatField::type = FormatType::End

语义写出类别 / semantic render category

Definition at line 579 of file format_protocol.hpp.

◆ width

uint8_t LibXR::Print::FormatField::width = 0

已解析的字段宽度 / parsed field width

Definition at line 585 of file format_protocol.hpp.


The documentation for this struct was generated from the following file: