Apache Log4cxx  Version 1.6.0
Loading...
Searching...
No Matches
log4cxx::helpers::AsyncBuffer Class Reference

This class is used by the LOG4CXX_INFO_ASYNC and similar macros to support insertion operators. More...

#include <asyncbuffer.h>

Public Member Functions

 AsyncBuffer ()
 An empty buffer.
 AsyncBuffer (AsyncBuffer &&other)
 A new buffer with the content of other.
 ~AsyncBuffer ()
 Release resources.
template<typename T>
AsyncBufferoperator<< (const T &value)
 Append a function to this buffer that will convert value to text.
bool empty () const
 Has no item been added to this?
void renderMessage (LogCharMessageBuffer &msg)
 Add text version of buffered values to msg.
void clear ()
 Remove all message appenders.

Detailed Description

This class is used by the LOG4CXX_INFO_ASYNC and similar macros to support insertion operators.

The class is not intended for use outside of that context.

Constructor & Destructor Documentation

◆ AsyncBuffer() [1/2]

log4cxx::helpers::AsyncBuffer::AsyncBuffer ( )

An empty buffer.

◆ AsyncBuffer() [2/2]

log4cxx::helpers::AsyncBuffer::AsyncBuffer ( AsyncBuffer && other)

A new buffer with the content of other.

◆ ~AsyncBuffer()

log4cxx::helpers::AsyncBuffer::~AsyncBuffer ( )

Release resources.

Member Function Documentation

◆ clear()

void log4cxx::helpers::AsyncBuffer::clear ( )

Remove all message appenders.

◆ empty()

bool log4cxx::helpers::AsyncBuffer::empty ( ) const

Has no item been added to this?

◆ operator<<()

template<typename T>
AsyncBuffer & log4cxx::helpers::AsyncBuffer::operator<< ( const T & value)
inline

Append a function to this buffer that will convert value to text.

Parameters
valuetype must be copy-constructable
Returns
this buffer.

◆ renderMessage()

void log4cxx::helpers::AsyncBuffer::renderMessage ( LogCharMessageBuffer & msg)

Add text version of buffered values to msg.


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