Load formatter layout and option values from the specified encoder options.

Synopsis

Declared in <balxml_encoder.h>

static
void
getFormatterOptions(
    int* formatterIndentLevel,
    int* formatterSpacesPerLevel,
    int* formatterWrapColumn,
    EncoderOptions* formatterOptions,
    EncoderOptions const& encoderOptions);

Description

Load to the specified formatterIndentLevel, formatterSpacesPerLevel, and formatterWrapColumn, the number of spaces to indent the first element in the XML document, the number of spaces to use for indenting each level of nesting in the document, and the maximum horizontal column number after which the encoder should insert a line break, respectively, based on the specified encoderOptions. Load to the specified formatterOptions the options that the formatter should use to emit XML, based on the encoderOptions. The behavior is undefined unless formatterOptions has the default value.

Parameters

Name

Description

formatterIndentLevel

receives initial indent level

formatterSpacesPerLevel

receives spaces per nesting level

formatterWrapColumn

receives wrap column

formatterOptions

receives formatter options derived from encoderOptions

encoderOptions

encoder options to translate

Created with MrDocs