Xport Interface: stylesheet::write

Writes the called stylesheet to a file or output stream.

bool stylesheet::write(1st Variety
  const std::string& path
);
bool stylesheet::write(2nd Variety
  const stylesheet_formatter& fmtr
);

Parameters

filename

The file path to write the stylesheet to.

strm

A formatter object, which allows the user to set specific formatting options before writing the stylesheet.

Returns

true if the stylesheet is written successfully, false otherwise.

Remarks

This operation is used to write a stylesheet. In the first variety, the stylesheet is written to a file specified by the passed path. When using this variety, a default stylesheet_formatter will be created and used to write the stylesheet. In the second variety, you pass a stylesheet_formatter which writes the stylesheet to the file or output stream that was specified when creating the stylesheet_formatter. The second variety gives the caller much more control over the formatted output of the stylesheet. A stylesheet_formatter is first created, and in it's constructor, the filename or output stream is specified. Then, there are many formatting options which can be set on the formatter object, which will determine how the stylesheet will look when written.

Complexity

Linear

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.