Constructors
Declared in <balxml_formatter.h>
Construct a formatter that writes XML to the specified output stream.
Formatter(
std::ostream& output,
int indentLevel = 0,
int spacesPerLevel = 4,
int wrapColumn = 80,
bslma::Allocator* basicAllocator = 0);
» more...
Construct a formatter that writes XML to the specified output streambuf.
Formatter(
std::streambuf* output,
int indentLevel = 0,
int spacesPerLevel = 4,
int wrapColumn = 80,
bslma::Allocator* basicAllocator = 0);
» more...
Construct a formatter that writes to the specified output stream using the specified encoderOptions and formatting parameters.
Formatter(
std::ostream& output,
EncoderOptions const& encoderOptions,
int indentLevel = 0,
int spacesPerLevel = 4,
int wrapColumn = 80,
bslma::Allocator* basicAllocator = 0);
» more...
Construct a formatter that writes to the specified output streambuf using the specified encoderOptions and formatting parameters.
Formatter(
std::streambuf* output,
EncoderOptions const& encoderOptions,
int indentLevel = 0,
int spacesPerLevel = 4,
int wrapColumn = 80,
bslma::Allocator* basicAllocator = 0);
» more...
| 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 |