Apache Log4cxx  Version 1.2.0
Loading...
Searching...
No Matches
log4cxx::helpers::WideMessageBuffer Class Reference

This class is designed to support insertion operations in the message argument to the LOG4CXX_INFO and similar macros and is not designed for general purpose use. More...

#include <messagebuffer.h>

Public Member Functions

 WideMessageBuffer ()
 Creates a new instance.
 
 ~WideMessageBuffer ()
 Destructor.
 
WideMessageBufferoperator<< (const std::basic_string< wchar_t > &msg)
 Appends string to buffer.
 
WideMessageBufferoperator<< (const wchar_t *msg)
 Appends string to buffer.
 
WideMessageBufferoperator<< (wchar_t *msg)
 Appends string to buffer.
 
WideMessageBufferoperator<< (const wchar_t msg)
 Appends character to buffer.
 
std::basic_ostream< wchar_t > & operator<< (ios_base_manip manip)
 Insertion operator for STL manipulators such as std::fixed.
 
std::basic_ostream< wchar_t > & operator<< (bool val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (short val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (int val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (unsigned int val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (long val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (unsigned long val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (float val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (double val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (long double val)
 Insertion operator for built-in type.
 
std::basic_ostream< wchar_t > & operator<< (void *val)
 Insertion operator for built-in type.
 
 operator std::basic_ostream< wchar_t > & ()
 Cast to ostream.
 
std::basic_string< wchar_t > extract_str (std::basic_ostream< wchar_t > &os)
 Remove the constructed string.
 
std::basic_string< wchar_t > extract_str (WideMessageBuffer &buf)
 Remove the constructed string.
 
const std::basic_string< wchar_t > & str (std::basic_ostream< wchar_t > &os)
 Get content of buffer.
 
const std::basic_string< wchar_t > & str (WideMessageBuffer &buf)
 Get content of buffer.
 
bool hasStream () const
 Returns true if buffer has an encapsulated STL stream.
 

Detailed Description

This class is designed to support insertion operations in the message argument to the LOG4CXX_INFO and similar macros and is not designed for general purpose use.

Constructor & Destructor Documentation

◆ WideMessageBuffer()

log4cxx::helpers::WideMessageBuffer::WideMessageBuffer ( )

Creates a new instance.

◆ ~WideMessageBuffer()

log4cxx::helpers::WideMessageBuffer::~WideMessageBuffer ( )

Destructor.

Member Function Documentation

◆ extract_str() [1/2]

std::basic_string< wchar_t > log4cxx::helpers::WideMessageBuffer::extract_str ( std::basic_ostream< wchar_t > &  os)

Remove the constructed string.

Parameters
osused only to signal that the embedded stream was used.

◆ extract_str() [2/2]

std::basic_string< wchar_t > log4cxx::helpers::WideMessageBuffer::extract_str ( WideMessageBuffer buf)

Remove the constructed string.

Parameters
bufused only to signal that the embedded stream was not used.

◆ hasStream()

bool log4cxx::helpers::WideMessageBuffer::hasStream ( ) const

Returns true if buffer has an encapsulated STL stream.

Returns
true if STL stream was created.

◆ operator std::basic_ostream< wchar_t > &()

log4cxx::helpers::WideMessageBuffer::operator std::basic_ostream< wchar_t > & ( )

Cast to ostream.

◆ operator<<() [1/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( bool  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [2/15]

WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< ( const std::basic_string< wchar_t > &  msg)

Appends string to buffer.

Parameters
msgstring append.
Returns
this buffer.

◆ operator<<() [3/15]

WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< ( const wchar_t *  msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.

◆ operator<<() [4/15]

WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< ( const wchar_t  msg)

Appends character to buffer.

Parameters
msgcharacter to append.
Returns
this buffer.

◆ operator<<() [5/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( double  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [6/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( float  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [7/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( int  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [8/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( ios_base_manip  manip)

Insertion operator for STL manipulators such as std::fixed.

Parameters
manipmanipulator.
Returns
encapsulated STL stream.

◆ operator<<() [9/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( long double  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [10/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( long  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [11/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( short  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [12/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( unsigned int  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [13/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( unsigned long  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [14/15]

std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< ( void *  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [15/15]

WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< ( wchar_t *  msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.

◆ str() [1/2]

const std::basic_string< wchar_t > & log4cxx::helpers::WideMessageBuffer::str ( std::basic_ostream< wchar_t > &  os)

Get content of buffer.

Parameters
osused only to signal that the embedded stream was used.

◆ str() [2/2]

const std::basic_string< wchar_t > & log4cxx::helpers::WideMessageBuffer::str ( WideMessageBuffer buf)

Get content of buffer.

Parameters
bufused only to signal that the embedded stream was not used.

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