This class is used by the LOG4CXX_INFO and similar macros to support insertion operators in the message parameter.
More...
#include <messagebuffer.h>
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.
◆ CharMessageBuffer()
log4cxx::helpers::CharMessageBuffer::CharMessageBuffer |
( |
| ) |
|
◆ ~CharMessageBuffer()
log4cxx::helpers::CharMessageBuffer::~CharMessageBuffer |
( |
| ) |
|
◆ hasStream()
bool log4cxx::helpers::CharMessageBuffer::hasStream |
( |
| ) |
const |
Returns true if buffer has an encapsulated STL stream.
- Returns
- true if STL stream was created.
◆ operator std::basic_ostream< char > &()
log4cxx::helpers::CharMessageBuffer::operator std::basic_ostream< char > & |
( |
| ) |
|
◆ operator<<() [1/15]
CharMessageBuffer& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
const std::basic_string< char > & |
msg | ) |
|
Appends string to buffer.
- Parameters
-
- Returns
- this buffer.
◆ operator<<() [2/15]
CharMessageBuffer& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
const char * |
msg | ) |
|
Appends string to buffer.
- Parameters
-
- Returns
- this buffer.
◆ operator<<() [3/15]
Appends string to buffer.
- Parameters
-
- Returns
- this buffer.
◆ operator<<() [4/15]
Appends character to buffer.
- Parameters
-
- Returns
- this buffer.
◆ operator<<() [5/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
ios_base_manip |
manip | ) |
|
Insertion operator for STL manipulators such as std::fixed.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [6/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
bool |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [7/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
short |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [8/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
int |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [9/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
unsigned int |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [10/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
long |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [11/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
unsigned long |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [12/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
float |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [13/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
double |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [14/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
long double |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ operator<<() [15/15]
std::ostream& log4cxx::helpers::CharMessageBuffer::operator<< |
( |
void * |
val | ) |
|
Insertion operator for built-in type.
- Parameters
-
- Returns
- encapsulated STL stream.
◆ str() [1/2]
const std::basic_string<char>& log4cxx::helpers::CharMessageBuffer::str |
( |
std::basic_ostream< char > & |
os | ) |
|
Get content of buffer.
- Parameters
-
os | used only to signal that the embedded stream was used. |
◆ str() [2/2]
const std::basic_string<char>& log4cxx::helpers::CharMessageBuffer::str |
( |
CharMessageBuffer & |
buf | ) |
|
Get content of buffer.
- Parameters
-
buf | used only to signal that the embedded stream was not used. |
The documentation for this class was generated from the following file: