boost::logging::gather::ostream_like::return_raw_stream< stream_type > Struct Template Reference

Allows you to write to a log using the cool "<<" operator. The .msg() returns the stream itself. More...

List of all members.

Public Member Functions

stream_type & msg ()


Detailed Description

template<class stream_type = std::basic_ostringstream<char_type>>
struct boost::logging::gather::ostream_like::return_raw_stream< stream_type >

Allows you to write to a log using the cool "<<" operator. The .msg() returns the stream itself.

Note that this is a very simple class - meant only as an example.

A class that implements gathering the message needs 2 things:

See also:


Member Function Documentation

template<class stream_type = std::basic_ostringstream<char_type>>
stream_type& boost::logging::gather::ostream_like::return_raw_stream< stream_type >::msg (  )  [inline]

note: we return the whole stream - we don't return out().str() , because the user might use a better ostream class, which could have better access to its buffer/internals


The documentation for this struct was generated from the following file:

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback