Apache log4cxx  Version 0.10.0
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...

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

typedef std::basic_ostream<UniChar> uostream

Constructor & Destructor Documentation

Creates a new instance.

Destructor.

Member Function Documentation

bool hasStream ( ) const

Returns true if buffer has an encapsulated STL stream.

Returns
true if STL stream was created.
operator uostream & ( )

Cast to ostream.

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

Appends string to buffer.

Parameters
msgstring append.
Returns
this buffer.
UniCharMessageBuffer& operator<< ( const UniChar msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.
UniCharMessageBuffer& operator<< ( UniChar msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.
UniCharMessageBuffer& operator<< ( const UniChar  msg)

Appends character to buffer.

Parameters
msgcharacter to append.
Returns
this buffer.
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.
uostream& operator<< ( ios_base_manip  manip)

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

Parameters
manipmanipulator.
Returns
encapsulated STL stream.
uostream& operator<< ( bool  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( short  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( int  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( unsigned int  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( long  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( unsigned long  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( float  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( double  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( long double  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
uostream& operator<< ( void *  val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.
const std::basic_string<UniChar>& str ( uostream os)

Get content of buffer.

Parameters
osused only to signal that the embedded stream was used.
const std::basic_string<UniChar>& 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: