UniCharMessageBuffer Class Reference

List of all members.

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.


Public Types

typedef std::basic_ostream<
UniChar
uostream

Public Member Functions

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


Member Typedef Documentation

typedef std::basic_ostream<UniChar> uostream


Constructor & Destructor Documentation

UniCharMessageBuffer (  ) 

Creates a new instance.

~UniCharMessageBuffer (  ) 

Destructor.


Member Function Documentation

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

Appends string to buffer.

Parameters:
msg string append.
Returns:
this buffer.

UniCharMessageBuffer& operator<< ( const UniChar msg  ) 

Appends string to buffer.

Parameters:
msg string to append.
Returns:
this buffer.

UniCharMessageBuffer& operator<< ( UniChar msg  ) 

Appends string to buffer.

Parameters:
msg string to append.
Returns:
this buffer.

UniCharMessageBuffer& operator<< ( const UniChar  msg  ) 

Appends character to buffer.

Parameters:
msg character 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:
msg message to append.
Returns:
encapsulated CharMessageBuffer.

uostream& operator<< ( ios_base_manip  manip  ) 

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

Parameters:
manip manipulator.
Returns:
encapsulated STL stream.

uostream& operator<< ( bool  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( short  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( int  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( unsigned int  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( long  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( unsigned long  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( float  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( double  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( long double  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

uostream& operator<< ( void *  val  ) 

Insertion operator for built-in type.

Parameters:
val build in type.
Returns:
encapsulated STL stream.

operator uostream & (  ) 

Cast to ostream.

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

Get content of buffer.

Parameters:
os used only to signal that the embedded stream was used.

const std::basic_string<UniChar>& str ( UniCharMessageBuffer buf  ) 

Get content of buffer.

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

bool hasStream (  )  const

Returns true if buffer has an encapsulated STL stream.

Returns:
true if STL stream was created.


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