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