Xport Interface: formatter overview

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.

xhtml_formatter's type aliases.
  • formatter - xhtml strict, narrow character (default).
  • wformatter - xhtml strict, wide character
  • tformatter - xhtml transitional, narrow character
  • wtformatter - xhtml transitional, wide character
  • fformatter - xhtml frameset, narrow character
  • wfformatter - xhtml frameset, wide character

There are only a few operations availabe for formatter, which are listed below.

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.