[#BloombergLP-balxml-Formatter-2constructor-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Formatter.adoc[Formatter]::Formatter :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<balxml_formatter.h>` Construct a formatter that writes XML to the specified `output` stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/Formatter/2constructor-08.adoc[Formatter]( std::ostream& output, int indentLevel = 0, int spacesPerLevel = 4, int wrapColumn = 80, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balxml/Formatter/2constructor-08.adoc[_» more..._]# Construct a formatter that writes XML to the specified `output` streambuf. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/Formatter/2constructor-01.adoc[Formatter]( std::streambuf* output, int indentLevel = 0, int spacesPerLevel = 4, int wrapColumn = 80, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balxml/Formatter/2constructor-01.adoc[_» more..._]# Construct a formatter that writes to the specified `output` stream using the specified `encoderOptions` and formatting parameters. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/Formatter/2constructor-09.adoc[Formatter]( std::ostream& output, xref:BloombergLP/balxml/EncoderOptions.adoc[EncoderOptions] const& encoderOptions, int indentLevel = 0, int spacesPerLevel = 4, int wrapColumn = 80, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balxml/Formatter/2constructor-09.adoc[_» more..._]# Construct a formatter that writes to the specified `output` streambuf using the specified `encoderOptions` and formatting parameters. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/Formatter/2constructor-0b.adoc[Formatter]( std::streambuf* output, xref:BloombergLP/balxml/EncoderOptions.adoc[EncoderOptions] const& encoderOptions, int indentLevel = 0, int spacesPerLevel = 4, int wrapColumn = 80, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balxml/Formatter/2constructor-0b.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | 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 | *encoderOptions* | options controlling XML encoding |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#