ROSE 0.11.145.147
Public Member Functions | Public Attributes | List of all members
Sawyer::Yaml::SerializeConfig Struct Reference

Description

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.
 

Constructor & Destructor Documentation

◆ SerializeConfig()

Sawyer::Yaml::SerializeConfig::SerializeConfig ( const size_t  spaceIndentation = 2,
const size_t  scalarMaxLength = std::numeric_limits< size_t >::max(),
const bool  sequenceMapNewline = false,
const bool  mapScalarNewline = false 
)
explicit

Constructor.

Parameters
spaceIndentationNumber of spaces per indentation.
scalarMaxLengthMaximum length of scalars. Serialized as folding scalars if exceeded. Ignored if equal to 0.
sequenceMapNewlinePut maps on a new line if parent node is a sequence.
mapScalarNewlinePut scalars on a new line if parent node is a map.

Member Data Documentation

◆ SpaceIndentation

size_t Sawyer::Yaml::SerializeConfig::SpaceIndentation = 2

Number of spaces per indentation.

Definition at line 546 of file Sawyer/Yaml.h.

◆ ScalarMaxLength

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.

◆ SequenceMapNewline

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.

◆ MapScalarNewline

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.


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