Xport Interface: formatter::operator <<

Writes the passed document or markup object to the output.

friend formatter& operator <<(1st Variety
  formatter& fmtr,
  document& doc
);
friend formatter& operator <<( 2nd Variety
  formatter& fmtr,
  markup& mkup
);

Parameters

fmtr

The formatter object which will format and write the document or markup object on the rhs.

doc

A reference to the rhs document object, which will be formatted and written to the output.

mkup

A reference to the rhs markup object, which will be formatted and written to the output.

Returns

Returns a reference to the formatter object, which allows the chaining of the operation, which is most useful when inserting multiple document or markup objects.

Remarks

These operations offer a convenient way to format and write a document or markup object. The result of these operations are equivalent to the operations document::write() and markup::write(). These two operations do not allow chaining, however, and do not convey the intention as well as this operation.

The first variety formats and writes a document object. The second variety formats and writes a markup object. Where these objects are written is determined by the output stream or file which was specified in the formatter's constructor.

Complexity

Logarithmic

Example

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.