Apache log4cxx
Version 0.10.0
|
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< UniChar > | uostream |
Public Member Functions | |
UniCharMessageBuffer () | |
Creates a new instance. More... | |
~UniCharMessageBuffer () | |
Destructor. More... | |
UniCharMessageBuffer & | operator<< (const std::basic_string< UniChar > &msg) |
Appends string to buffer. More... | |
UniCharMessageBuffer & | operator<< (const UniChar *msg) |
Appends string to buffer. More... | |
UniCharMessageBuffer & | operator<< (UniChar *msg) |
Appends string to buffer. More... | |
UniCharMessageBuffer & | operator<< (const UniChar msg) |
Appends character to buffer. More... | |
UniCharMessageBuffer & | operator<< (const CFStringRef &msg) |
Appends a string into the buffer and fixes the buffer to use char characters. More... | |
uostream & | operator<< (ios_base_manip manip) |
Insertion operator for STL manipulators such as std::fixed. More... | |
uostream & | operator<< (bool val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (short val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (int val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (unsigned int val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (long val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (unsigned long val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (float val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (double val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (long double val) |
Insertion operator for built-in type. More... | |
uostream & | operator<< (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... | |
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.
Creates a new instance.
~UniCharMessageBuffer | ( | ) |
Destructor.
bool hasStream | ( | ) | const |
Returns true if buffer has an encapsulated STL stream.
operator uostream & | ( | ) |
Cast to ostream.
UniCharMessageBuffer& operator<< | ( | const std::basic_string< UniChar > & | msg | ) |
Appends string to buffer.
msg | string append. |
UniCharMessageBuffer& operator<< | ( | const UniChar * | msg | ) |
Appends string to buffer.
msg | string to append. |
UniCharMessageBuffer& operator<< | ( | UniChar * | msg | ) |
Appends string to buffer.
msg | string to append. |
UniCharMessageBuffer& operator<< | ( | const UniChar | msg | ) |
Appends character to buffer.
msg | character to append. |
UniCharMessageBuffer& operator<< | ( | const CFStringRef & | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
uostream& operator<< | ( | ios_base_manip | manip | ) |
Insertion operator for STL manipulators such as std::fixed.
manip | manipulator. |
uostream& operator<< | ( | bool | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | short | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | int | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | unsigned int | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | long | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | unsigned long | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | float | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | double | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | long double | val | ) |
Insertion operator for built-in type.
val | build in type. |
uostream& operator<< | ( | void * | val | ) |
Insertion operator for built-in type.
val | build in type. |
Get content of buffer.
os | used only to signal that the embedded stream was used. |
const std::basic_string<UniChar>& str | ( | UniCharMessageBuffer & | buf | ) |
Get content of buffer.
buf | used only to signal that the embedded stream was not used. |