BloombergLP::balxml::Encoder_OptionsCompatibilityUtil::getFormatterOptions

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

NameDescription
formatterIndentLevelreceives initial indent level
formatterSpacesPerLevelreceives spaces per nesting level
formatterWrapColumnreceives wrap column
formatterOptionsreceives formatter options derived from encoderOptions
encoderOptionsencoder options to translate