Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::aux::record_pump< LoggerT > Class Template Reference

Logging record pump implementation. More...

#include <record_ostream.hpp>

Collaboration diagram for boost::aux::record_pump< LoggerT >:

Public Member Functions

 record_pump (logger_type &lg, record &rec)
 Constructor. More...
 
 record_pump (BOOST_RV_REF(record_pump) that) BOOST_NOEXCEPT
 Move constructor. More...
 
 ~record_pump () BOOST_NOEXCEPT_IF(false)
 Destructor. Pushes the composed message to log. More...
 
basic_record_ostream< char_type > & stream () const BOOST_NOEXCEPT
 Returns the stream to be used for message text formatting. More...
 

Protected Attributes

logger_type * m_pLogger
 A reference to the logger. More...
 
stream_compoundm_pStreamCompound
 Stream compound. More...
 
const unsigned int m_ExceptionCount
 Exception state. More...
 

Friends

class auto_release
 

Detailed Description

template<typename LoggerT>
class boost::aux::record_pump< LoggerT >

Logging record pump implementation.

The pump is used to format the logging record message text and then push it to the logging core. It is constructed on each attempt to write a log record and destroyed afterwards.

The pump class template is instantiated on the logger type.

Constructor & Destructor Documentation

template<typename LoggerT>
boost::aux::record_pump< LoggerT >::record_pump ( logger_type &  lg,
record rec 
)
inlineexplicit

Constructor.

template<typename LoggerT>
boost::aux::record_pump< LoggerT >::record_pump ( BOOST_RV_REF(record_pump< LoggerT >)  that)
inline

Move constructor.

template<typename LoggerT>
boost::aux::record_pump< LoggerT >::~record_pump ( )
inline

Member Function Documentation

template<typename LoggerT>
basic_record_ostream< char_type >& boost::aux::record_pump< LoggerT >::stream ( ) const
inline

Returns the stream to be used for message text formatting.

References BOOST_ASSERT, and boost::aux::stream_provider< CharT >::stream_compound::stream.

Friends And Related Function Documentation

template<typename LoggerT>
friend class auto_release
friend

Member Data Documentation

template<typename LoggerT>
const unsigned int boost::aux::record_pump< LoggerT >::m_ExceptionCount
protected

Exception state.

template<typename LoggerT>
logger_type* boost::aux::record_pump< LoggerT >::m_pLogger
protected

A reference to the logger.

template<typename LoggerT>
stream_compound* boost::aux::record_pump< LoggerT >::m_pStreamCompound
protected

Stream compound.


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