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

Name

Description

output

stream to which XML is written

indentLevel

initial indentation level

spacesPerLevel

spaces per indentation level

wrapColumn

column at which to wrap lines, or special value

basicAllocator

memory allocator; null uses the default

Created with MrDocs