ROSE 0.11.145.147
|
Serialization configuration structure, describing output behavior.
Definition at line 532 of file Sawyer/Yaml.h.
#include <Sawyer/Yaml.h>
Public Member Functions | |
SerializeConfig (const size_t spaceIndentation=2, const size_t scalarMaxLength=std::numeric_limits< size_t >::max(), const bool sequenceMapNewline=false, const bool mapScalarNewline=false) | |
Constructor. | |
Public Attributes | |
size_t | SpaceIndentation = 2 |
Number of spaces per indentation. | |
size_t | ScalarMaxLength = std::numeric_limits<size_t>::max() |
Maximum length of scalars. | |
bool | SequenceMapNewline = false |
Put maps on a new line if parent node is a sequence. | |
bool | MapScalarNewline = false |
Put scalars on a new line if parent node is a map. | |
|
explicit |
Constructor.
spaceIndentation | Number of spaces per indentation. |
scalarMaxLength | Maximum length of scalars. Serialized as folding scalars if exceeded. Ignored if equal to 0. |
sequenceMapNewline | Put maps on a new line if parent node is a sequence. |
mapScalarNewline | Put scalars on a new line if parent node is a map. |
size_t Sawyer::Yaml::SerializeConfig::SpaceIndentation = 2 |
Number of spaces per indentation.
Definition at line 546 of file Sawyer/Yaml.h.
size_t Sawyer::Yaml::SerializeConfig::ScalarMaxLength = std::numeric_limits<size_t>::max() |
Maximum length of scalars.
Serialized as folder scalars if exceeded.
Definition at line 551 of file Sawyer/Yaml.h.
bool Sawyer::Yaml::SerializeConfig::SequenceMapNewline = false |
Put maps on a new line if parent node is a sequence.
Definition at line 554 of file Sawyer/Yaml.h.
bool Sawyer::Yaml::SerializeConfig::MapScalarNewline = false |
Put scalars on a new line if parent node is a map.
Definition at line 557 of file Sawyer/Yaml.h.