Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Global xml_decor

boost::log::expressions::xml_decor

Synopsis

// In header: <boost/log/expressions/formatters/xml_decorator.hpp>

unspecified xml_decor;

Description

XML-style decorator generator object. The decorator replaces characters that have special meaning in XML documents with the corresponding decorated counterparts. The generator provides operator[] that can be used to construct the actual decorator. For example:

xml_decor[ stream << attr< std::string >("MyAttr") ]

For wide-character formatting there is the similar wxml_decor decorator generator object.


PrevUpHomeNext