BloombergLP::balxml::Formatter::Formatter

Construct a formatter that writes to the specified output streambuf using the specified encoderOptions and formatting parameters.

Synopsis

Declared in <balxml_formatter.h>

Formatter(
    std::streambuf* output,
    EncoderOptions const& encoderOptions,
    int indentLevel = 0,
    int spacesPerLevel = 4,
    int wrapColumn = 80,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
outputstreambuf to which XML is written
encoderOptionsoptions controlling XML encoding
indentLevelinitial indentation level
spacesPerLevelspaces per indentation level
wrapColumncolumn at which to wrap lines, or special value
basicAllocatormemory allocator; null uses the default