|
Xport's formatter
type alias, (and other aliases typed
from xhtml_formatter), formats xhtml output from document
objects, and all embedded markup
objects.
All output from document and markup objects use a formatter
object to write the output.
If a formatter object is not
specified when writing a document
or markup
object, then a default formatter
object is created and used to
write the output.
formatters's
constructor allows you to specify the output stream or file, where the formatted output will be written. If specifying a
file, the file must be open with write permissions. An output stream can also be specified, including the standard output streams, like std::cout,
and also string streams, such as std::ostringstream.
The type alias that you use for your formatter
depends on two factors. The document type you wish to use, and the character type you wish to use.
The list below reveals the available type aliases for Xport's
formatter
.
There are only a few operations availabe for formatter
, which are listed below.