Apache log4cxx  Version 0.12.1
log4cxx::helpers::UniCharMessageBuffer 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 Types

typedef std::basic_ostream< UniCharuostream
 

Public Member Functions

 UniCharMessageBuffer ()
 Creates a new instance. More...
 
 ~UniCharMessageBuffer ()
 Destructor. More...
 
UniCharMessageBufferoperator<< (const std::basic_string< UniChar > &msg)
 Appends string to buffer. More...
 
UniCharMessageBufferoperator<< (const UniChar *msg)
 Appends string to buffer. More...
 
UniCharMessageBufferoperator<< (UniChar *msg)
 Appends string to buffer. More...
 
UniCharMessageBufferoperator<< (const UniChar msg)
 Appends character to buffer. More...
 
UniCharMessageBufferoperator<< (const CFStringRef &msg)
 Appends a string into the buffer and fixes the buffer to use char characters. More...
 
uostreamoperator<< (ios_base_manip manip)
 Insertion operator for STL manipulators such as std::fixed. More...
 
uostreamoperator<< (bool val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (short val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (int val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (unsigned int val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (long val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (unsigned long val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (float val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (double val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (long double val)
 Insertion operator for built-in type. More...
 
uostreamoperator<< (void *val)
 Insertion operator for built-in type. More...
 
 operator uostream & ()
 Cast to ostream. More...
 
const std::basic_string< UniChar > & str (uostream &os)
 Get content of buffer. More...
 
const std::basic_string< UniChar > & str (UniCharMessageBuffer &buf)
 Get content of buffer. More...
 
bool hasStream () const
 Returns true if buffer has an encapsulated STL stream. More...
 

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.

Member Typedef Documentation

◆ uostream

Constructor & Destructor Documentation

◆ UniCharMessageBuffer()

log4cxx::helpers::UniCharMessageBuffer::UniCharMessageBuffer ( )

Creates a new instance.

◆ ~UniCharMessageBuffer()

log4cxx::helpers::UniCharMessageBuffer::~UniCharMessageBuffer ( )

Destructor.

Member Function Documentation

◆ hasStream()

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

Returns true if buffer has an encapsulated STL stream.

Returns
true if STL stream was created.

◆ operator uostream &()

log4cxx::helpers::UniCharMessageBuffer::operator uostream & ( )

Cast to ostream.

◆ operator<<() [1/16]

UniCharMessageBuffer& log4cxx::helpers::UniCharMessageBuffer::operator<< ( const std::basic_string< UniChar > &  msg)

Appends string to buffer.

Parameters
msgstring append.
Returns
this buffer.

◆ operator<<() [2/16]

UniCharMessageBuffer& log4cxx::helpers::UniCharMessageBuffer::operator<< ( const UniChar msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.

◆ operator<<() [3/16]

UniCharMessageBuffer& log4cxx::helpers::UniCharMessageBuffer::operator<< ( UniChar msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.

◆ operator<<() [4/16]

UniCharMessageBuffer& log4cxx::helpers::UniCharMessageBuffer::operator<< ( const UniChar  msg)

Appends character to buffer.

Parameters
msgcharacter to append.
Returns
this buffer.

◆ operator<<() [5/16]

UniCharMessageBuffer& log4cxx::helpers::UniCharMessageBuffer::operator<< ( const CFStringRef msg)

Appends a string into the buffer and fixes the buffer to use char characters.

Parameters
msgmessage to append.
Returns
encapsulated CharMessageBuffer.

◆ operator<<() [6/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( ios_base_manip  manip)

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

Parameters
manipmanipulator.
Returns
encapsulated STL stream.

◆ operator<<() [7/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( bool  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [8/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( short  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [9/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( int  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [10/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( unsigned int  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [11/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( long  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [12/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( unsigned long  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [13/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( float  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [14/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( double  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [15/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( long double  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [16/16]

uostream& log4cxx::helpers::UniCharMessageBuffer::operator<< ( void *  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ str() [1/2]

const std::basic_string<UniChar>& log4cxx::helpers::UniCharMessageBuffer::str ( uostream os)

Get content of buffer.

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

◆ str() [2/2]

const std::basic_string<UniChar>& log4cxx::helpers::UniCharMessageBuffer::str ( UniCharMessageBuffer 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: