Boost C++ Libraries

PrevUpHomeNext

Class template fmt_c_ascii_decorator

boost::log::formatters::fmt_c_ascii_decorator

Synopsis

// In header: <boost/log/formatters/c_decorator.hpp>

template<typename FormatterT> 
class fmt_c_ascii_decorator : public basic_formatter< FormatterT::char_type, fmt_c_ascii_decorator< FormatterT > >
{
public:
  // types
  typedef base_type::char_type    char_type;       // Character type. 
  typedef FormatterT              formatter_type;  // Decorated formatter type. 
  typedef base_type::string_type  string_type;     // String type. 
  typedef base_type::ostream_type ostream_type;    // Stream type. 
  typedef base_type::record_type  record_type;     // Log record type. 

  // construct/copy/destruct
  explicit fmt_c_ascii_decorator(formatter_type const &);
  fmt_c_ascii_decorator(fmt_c_ascii_decorator const &);
  fmt_c_ascii_decorator& operator=(fmt_c_ascii_decorator const &);

  // public member functions
  void operator()(ostream_type &, record_type const &) const;
};

Description

fmt_c_ascii_decorator public construct/copy/destruct

  1. explicit fmt_c_ascii_decorator(formatter_type const & fmt);

    Initializing constructor

  2. fmt_c_ascii_decorator(fmt_c_ascii_decorator const & that);

    Copy constructor

  3. fmt_c_ascii_decorator& operator=(fmt_c_ascii_decorator const &);
    Assignment is closed.

fmt_c_ascii_decorator public member functions

  1. void operator()(ostream_type & strm, record_type const & record) const;

    Formatting operator. Invokes the decorated formatter, then sequentially applies all decorations to the output. The resulting string is the output of the decorator.

    Parameters:
    record

    A logging record

    strm

    A reference to the stream, where the final text of the logging record is composed


PrevUpHomeNext