struct RendererConfig
Required header: <Eclog/RendererConfig.h>
The RendererConfig struct represents a renderer configuration (See Renderer).
Name | Description |
---|---|
Scheme | Scheme. |
Formatting | Format. |
IndentCharacter | Indent character. |
Name | Description |
---|---|
(constructor) | Constructor. |
Name | Description |
---|---|
formatting | Text formatting. |
linebreak | Line-break style. |
indentCharacter | Indent character. |
indentSize | Indent size. |
insertSpaceAfterColon | Insert space after colon. |
placeOpenBracketOnNewLineForObjects | Place open bracket on new line for objects. |
placeOpenBracketOnNewLineForArrays | Place open bracket on new line for arrays. |
encloseRootObjectWithCurlyBrackets | Enclose root object with curly brackets. |
useQuotedStringsOnly | Use quoted strings only. |
useCommasToSeparateItems | Use commas to separate items. |
useStringsToRepresentInfinitiesAndNaNs | Use strings to represent infinities and NaNs. |
enableComments | Enable comments. |
enum Scheme
scheme_typical
Scheme: typical.
scheme_json_compatible
Scheme: JSON-compatible.
enum Formatting
formatting_regular
Formatting: regular.
formatting_compact
Formatting: compact.
enum IndentCharacter
indent_character_tab
Indent character: horizontal tab.
indent_character_space
Indent character: space.
explicit RendererConfig(Scheme scheme = scheme_typical);
Constructs a RendererConfig.
Scheme scheme The predefined scheme for specifying the initial value of member variables.
Formatting formatting
Text formatting.
Typical scheme: formatting_regular.
JSON-compatible scheme: formatting_regular.
Linebreak linebreak
Line-break style.
Typical scheme: LF.
JSON-compatible scheme: LF.
IndentCharacter indentCharacter
Indent character.
Typical scheme: indent_character_tab.
JSON-compatible scheme: indent_character_tab.
int
indentSize
Indent size.
Typical scheme: 1.
JSON-compatible scheme: 1.
bool
insertSpaceAfterColon
Insert space after colon.
Typical scheme: true.
JSON-compatible scheme: true.
bool
placeOpenBracketOnNewLineForObjects
Place open bracket on new line for objects.
Typical scheme: true.
JSON-compatible scheme: true.
bool
placeOpenBracketOnNewLineForArrays
Place open bracket on new line for arrays.
Typical scheme: true.
JSON-compatible scheme: true.
bool
encloseRootObjectWithCurlyBrackets
Enclose root object with curly brackets.
Typical scheme: false.
JSON-compatible scheme: true.
bool
useQuotedStringsOnly
Use quoted strings only.
Typical scheme: false.
JSON-compatible scheme: true.
bool
useCommasToSeparateItems
Use commas to separate items.
Typical scheme: false.
JSON-compatible scheme: true.
bool
useStringsToRepresentInfinitiesAndNaNs
Use strings to represent infinities and NaNs.
Typical scheme: false.
JSON-compatible scheme: true.
bool
enableComments
Enable comments.
Typical scheme: true.
JSON-compatible scheme: false.