Apache Log4cxx
Version 1.3.1
|
This class is used by the LOG4CXX_INFO and similar macros to support insertion operators in the message parameter. More...
#include <messagebuffer.h>
Public Member Functions | |
MessageBuffer () | |
Creates a new instance. | |
~MessageBuffer () | |
Destructor. | |
operator std::ostream & () | |
Cast to ostream. | |
CharMessageBuffer & | operator<< (const std::string &msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
CharMessageBuffer & | operator<< (const char *msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
CharMessageBuffer & | operator<< (char *msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
CharMessageBuffer & | operator<< (const char msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
std::string | extract_str (CharMessageBuffer &buf) |
Remove the constructed string. | |
std::string | extract_str (std::ostream &os) |
Remove the constructed string. | |
const std::string & | str (CharMessageBuffer &buf) |
Get content of buffer. | |
const std::string & | str (std::ostream &os) |
Get content of buffer. | |
WideMessageBuffer & | operator<< (const std::wstring &msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
WideMessageBuffer & | operator<< (const wchar_t *msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
WideMessageBuffer & | operator<< (wchar_t *msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
WideMessageBuffer & | operator<< (const wchar_t msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
UniCharMessageBuffer & | operator<< (const std::basic_string< UniChar > &msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
UniCharMessageBuffer & | operator<< (const UniChar *msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
UniCharMessageBuffer & | operator<< (UniChar *msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
UniCharMessageBuffer & | operator<< (const UniChar msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
std::basic_string< UniChar > | extract_str (UniCharMessageBuffer &buf) |
Remove the constructed string. | |
std::basic_string< UniChar > | extract_str (std::basic_ostream< UniChar > &os) |
Remove the constructed string. | |
UniCharMessageBuffer & | operator<< (const CFStringRef &msg) |
Appends a string into the buffer and fixes the buffer to use char characters. | |
std::ostream & | operator<< (ios_base_manip manip) |
Insertion operator for STL manipulators such as std::fixed. | |
std::ostream & | operator<< (bool val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (short val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (int val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (unsigned int val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (long val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (unsigned long val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (float val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (double val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (long double val) |
Insertion operator for built-in type. | |
std::ostream & | operator<< (void *val) |
Insertion operator for built-in type. | |
std::wstring | extract_str (WideMessageBuffer &buf) |
Remove the constructed string. | |
std::wstring | extract_str (std::basic_ostream< wchar_t > &os) |
Remove the constructed string. | |
const std::wstring & | str (WideMessageBuffer &buf) |
Get content of buffer. | |
const std::wstring & | str (std::basic_ostream< wchar_t > &os) |
Get content of buffer. | |
const std::basic_string< UniChar > & | str (UniCharMessageBuffer &buf) |
Get content of buffer. | |
const std::basic_string< UniChar > & | str (UniCharMessageBuffer::uostream &os) |
Get content of buffer. | |
bool | hasStream () const |
Returns true if buffer has an encapsulated STL stream. | |
This class is used by the LOG4CXX_INFO and similar macros to support insertion operators in the message parameter.
The class is not intended for use outside of that context.
log4cxx::helpers::MessageBuffer::MessageBuffer | ( | ) |
Creates a new instance.
log4cxx::helpers::MessageBuffer::~MessageBuffer | ( | ) |
Destructor.
std::string log4cxx::helpers::MessageBuffer::extract_str | ( | CharMessageBuffer & | buf | ) |
Remove the constructed string.
buf | used only to signal the character type and that the embedded stream was not used. |
std::basic_string< UniChar > log4cxx::helpers::MessageBuffer::extract_str | ( | std::basic_ostream< UniChar > & | os | ) |
Remove the constructed string.
os | used only to signal that the embedded stream was not used. |
std::wstring log4cxx::helpers::MessageBuffer::extract_str | ( | std::basic_ostream< wchar_t > & | os | ) |
Remove the constructed string.
os | used only to signal the character type and that the embedded stream was used. |
std::string log4cxx::helpers::MessageBuffer::extract_str | ( | std::ostream & | os | ) |
Remove the constructed string.
os | used only to signal the character type and that the embedded stream was used. |
std::basic_string< UniChar > log4cxx::helpers::MessageBuffer::extract_str | ( | UniCharMessageBuffer & | buf | ) |
Remove the constructed string.
buf | used only to signal that the embedded stream was not used. |
std::wstring log4cxx::helpers::MessageBuffer::extract_str | ( | WideMessageBuffer & | buf | ) |
Remove the constructed string.
buf | used only to signal the character type and that the embedded stream was not used. |
bool log4cxx::helpers::MessageBuffer::hasStream | ( | ) | const |
Returns true if buffer has an encapsulated STL stream.
log4cxx::helpers::MessageBuffer::operator std::ostream & | ( | ) |
Cast to ostream.
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | bool | val | ) |
Insertion operator for built-in type.
val | build in type. |
CharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | char * | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
UniCharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const CFStringRef & | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
CharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const char * | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
CharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const char | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
UniCharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const std::basic_string< UniChar > & | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
CharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const std::string & | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
WideMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const std::wstring & | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
UniCharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const UniChar * | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
UniCharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const UniChar | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
WideMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const wchar_t * | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
WideMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | const wchar_t | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | double | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | float | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | int | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | ios_base_manip | manip | ) |
Insertion operator for STL manipulators such as std::fixed.
manip | manipulator. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | long double | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | long | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | short | val | ) |
Insertion operator for built-in type.
val | build in type. |
UniCharMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | UniChar * | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | unsigned int | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | unsigned long | val | ) |
Insertion operator for built-in type.
val | build in type. |
std::ostream & log4cxx::helpers::MessageBuffer::operator<< | ( | void * | val | ) |
Insertion operator for built-in type.
val | build in type. |
WideMessageBuffer & log4cxx::helpers::MessageBuffer::operator<< | ( | wchar_t * | msg | ) |
Appends a string into the buffer and fixes the buffer to use char characters.
msg | message to append. |
const std::string & log4cxx::helpers::MessageBuffer::str | ( | CharMessageBuffer & | buf | ) |
Get content of buffer.
buf | used only to signal the character type and that the embedded stream was not used. |
const std::wstring & log4cxx::helpers::MessageBuffer::str | ( | std::basic_ostream< wchar_t > & | os | ) |
Get content of buffer.
os | used only to signal the character type and that the embedded stream was used. |
const std::string & log4cxx::helpers::MessageBuffer::str | ( | std::ostream & | os | ) |
Get content of buffer.
os | used only to signal the character type and that the embedded stream was used. |
const std::basic_string< UniChar > & log4cxx::helpers::MessageBuffer::str | ( | UniCharMessageBuffer & | buf | ) |
Get content of buffer.
buf | used only to signal the character type and that the embedded stream was not used. |
const std::basic_string< UniChar > & log4cxx::helpers::MessageBuffer::str | ( | UniCharMessageBuffer::uostream & | os | ) |
Get content of buffer.
os | used only to signal the character type and that the embedded stream was used. |
const std::wstring & log4cxx::helpers::MessageBuffer::str | ( | WideMessageBuffer & | buf | ) |
Get content of buffer.
buf | used only to signal the character type and that the embedded stream was not used. |