BloombergLP::balxml::Formatter::Formatter

Construct a formatter that writes XML to the specified output stream.

Synopsis

Declared in <balxml_formatter.h>

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

Description

Optionally specify initial indentLevel, spacesPerLevel, and wrapColumn for formatting, and a basicAllocator used to supply memory.

Parameters

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