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 Member Functions | |
WideMessageBuffer () | |
Creates a new instance. | |
~WideMessageBuffer () | |
Destructor. | |
WideMessageBuffer & | operator<< (const std::basic_string< wchar_t > &msg) |
Appends string to buffer. | |
WideMessageBuffer & | operator<< (const wchar_t *msg) |
Appends string to buffer. | |
WideMessageBuffer & | operator<< (wchar_t *msg) |
Appends string to buffer. | |
WideMessageBuffer & | operator<< (const wchar_t msg) |
Appends character to buffer. | |
std::basic_ostream< wchar_t > & | operator<< (ios_base_manip manip) |
Insertion operator for STL manipulators such as std::fixed. | |
std::basic_ostream< wchar_t > & | operator<< (bool val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (short val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (int val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (unsigned int val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (long val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (unsigned long val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (float val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (double val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (long double val) |
Insertion operator for built-in type. | |
std::basic_ostream< wchar_t > & | operator<< (void *val) |
Insertion operator for built-in type. | |
operator std::basic_ostream< wchar_t > & () | |
Cast to ostream. | |
std::basic_string< wchar_t > | extract_str (std::basic_ostream< wchar_t > &os) |
Remove the constructed string. | |
std::basic_string< wchar_t > | extract_str (WideMessageBuffer &buf) |
Remove the constructed string. | |
const std::basic_string< wchar_t > & | str (std::basic_ostream< wchar_t > &os) |
Get content of buffer. | |
const std::basic_string< wchar_t > & | str (WideMessageBuffer &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.
log4cxx::helpers::WideMessageBuffer::WideMessageBuffer | ( | ) |
Creates a new instance.
log4cxx::helpers::WideMessageBuffer::~WideMessageBuffer | ( | ) |
Destructor.
std::basic_string< wchar_t > log4cxx::helpers::WideMessageBuffer::extract_str | ( | std::basic_ostream< wchar_t > & | os | ) |
Remove the constructed string.
os | used only to signal that the embedded stream was used. |
std::basic_string< wchar_t > log4cxx::helpers::WideMessageBuffer::extract_str | ( | WideMessageBuffer & | buf | ) |
Remove the constructed string.
buf | used only to signal that the embedded stream was not used. |
bool log4cxx::helpers::WideMessageBuffer::hasStream | ( | ) | const |
Returns true if buffer has an encapsulated STL stream.
log4cxx::helpers::WideMessageBuffer::operator std::basic_ostream< wchar_t > & | ( | ) |
Cast to ostream.
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | bool | val | ) |
Insertion operator for built-in type.
val | build in type. |
WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< | ( | const std::basic_string< wchar_t > & | msg | ) |
Appends string to buffer.
msg | string append. |
WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< | ( | const wchar_t * | msg | ) |
Appends string to buffer.
msg | string to append. |
WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< | ( | const wchar_t | msg | ) |
Appends character to buffer.
msg | character to append. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | double | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | float | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | int | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | ios_base_manip | manip | ) |
Insertion operator for STL manipulators such as std::fixed.
manip | manipulator. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | long double | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | long | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | short | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | unsigned int | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | unsigned long | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::basic_ostream< wchar_t > & log4cxx::helpers::WideMessageBuffer::operator<< | ( | void * | val | ) |
Insertion operator for built-in type.
val | build in type. |
WideMessageBuffer & log4cxx::helpers::WideMessageBuffer::operator<< | ( | wchar_t * | msg | ) |
Appends string to buffer.
msg | string to append. |
const std::basic_string< wchar_t > & log4cxx::helpers::WideMessageBuffer::str | ( | std::basic_ostream< wchar_t > & | os | ) |
Get content of buffer.
os | used only to signal that the embedded stream was used. |
const std::basic_string< wchar_t > & log4cxx::helpers::WideMessageBuffer::str | ( | WideMessageBuffer & | buf | ) |
Get content of buffer.
buf | used only to signal that the embedded stream was not used. |