Apache Log4cxx  Version 1.5.0
Loading...
Searching...
No Matches
log4cxx::helpers::UniCharMessageBuffer Class Reference

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< UniCharuostream

Public Member Functions

 UniCharMessageBuffer ()
 Creates a new instance.
 ~UniCharMessageBuffer ()
 Destructor.
UniCharMessageBufferoperator<< (const std::basic_string< UniChar > &msg)
 Appends string to buffer.
UniCharMessageBufferoperator<< (const UniChar *msg)
 Appends string to buffer.
UniCharMessageBufferoperator<< (UniChar *msg)
 Appends string to buffer.
UniCharMessageBufferoperator<< (const UniChar msg)
 Appends character to buffer.
UniCharMessageBufferoperator<< (const CFStringRef &msg)
 Appends a string into the buffer and fixes the buffer to use char characters.
uostreamoperator<< (ios_base_manip manip)
 Insertion operator for STL manipulators such as std::fixed.
uostreamoperator<< (bool val)
 Insertion operator for built-in type.
uostreamoperator<< (short val)
 Insertion operator for built-in type.
uostreamoperator<< (int val)
 Insertion operator for built-in type.
uostreamoperator<< (unsigned int val)
 Insertion operator for built-in type.
uostreamoperator<< (long val)
 Insertion operator for built-in type.
uostreamoperator<< (unsigned long val)
 Insertion operator for built-in type.
uostreamoperator<< (float val)
 Insertion operator for built-in type.
uostreamoperator<< (double val)
 Insertion operator for built-in type.
uostreamoperator<< (long double val)
 Insertion operator for built-in type.
uostreamoperator<< (void *val)
 Insertion operator for built-in type.
 operator uostream & ()
 Cast to ostream.
std::basic_string< UniCharextract_str (uostream &os)
 Remove the constructed string.
std::basic_string< UniCharextract_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.

Detailed Description

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.

Member Typedef Documentation

◆ uostream

Constructor & Destructor Documentation

◆ UniCharMessageBuffer()

log4cxx::helpers::UniCharMessageBuffer::UniCharMessageBuffer ( )

Creates a new instance.

◆ ~UniCharMessageBuffer()

log4cxx::helpers::UniCharMessageBuffer::~UniCharMessageBuffer ( )

Destructor.

Member Function Documentation

◆ extract_str() [1/2]

std::basic_string< UniChar > log4cxx::helpers::UniCharMessageBuffer::extract_str ( UniCharMessageBuffer & buf)

Remove the constructed string.

Parameters
bufused only to signal that the embedded stream was not used.

◆ extract_str() [2/2]

std::basic_string< UniChar > log4cxx::helpers::UniCharMessageBuffer::extract_str ( uostream & os)

Remove the constructed string.

Parameters
osused only to signal that the embedded stream was used.

◆ hasStream()

bool log4cxx::helpers::UniCharMessageBuffer::hasStream ( ) const

Returns true if buffer has an encapsulated STL stream.

Returns
true if STL stream was created.

◆ operator uostream &()

log4cxx::helpers::UniCharMessageBuffer::operator uostream & ( )

Cast to ostream.

◆ operator<<() [1/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( bool val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [2/16]

UniCharMessageBuffer & log4cxx::helpers::UniCharMessageBuffer::operator<< ( const CFStringRef & msg)

Appends a string into the buffer and fixes the buffer to use char characters.

Parameters
msgmessage to append.
Returns
encapsulated CharMessageBuffer.

◆ operator<<() [3/16]

UniCharMessageBuffer & log4cxx::helpers::UniCharMessageBuffer::operator<< ( const std::basic_string< UniChar > & msg)

Appends string to buffer.

Parameters
msgstring append.
Returns
this buffer.

◆ operator<<() [4/16]

UniCharMessageBuffer & log4cxx::helpers::UniCharMessageBuffer::operator<< ( const UniChar * msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.

◆ operator<<() [5/16]

UniCharMessageBuffer & log4cxx::helpers::UniCharMessageBuffer::operator<< ( const UniChar msg)

Appends character to buffer.

Parameters
msgcharacter to append.
Returns
this buffer.

◆ operator<<() [6/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( double val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [7/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( float val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [8/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( int val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [9/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( ios_base_manip manip)

Insertion operator for STL manipulators such as std::fixed.

Parameters
manipmanipulator.
Returns
encapsulated STL stream.

◆ operator<<() [10/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( long double val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [11/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( long val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [12/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( short val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [13/16]

UniCharMessageBuffer & log4cxx::helpers::UniCharMessageBuffer::operator<< ( UniChar * msg)

Appends string to buffer.

Parameters
msgstring to append.
Returns
this buffer.

◆ operator<<() [14/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( unsigned int val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [15/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( unsigned long val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ operator<<() [16/16]

uostream & log4cxx::helpers::UniCharMessageBuffer::operator<< ( void * val)

Insertion operator for built-in type.

Parameters
valbuild in type.
Returns
encapsulated STL stream.

◆ str() [1/2]

const std::basic_string< UniChar > & log4cxx::helpers::UniCharMessageBuffer::str ( UniCharMessageBuffer & buf)

Get content of buffer.

Parameters
bufused only to signal that the embedded stream was not used.

◆ str() [2/2]

const std::basic_string< UniChar > & log4cxx::helpers::UniCharMessageBuffer::str ( uostream & os)

Get content of buffer.

Parameters
osused only to signal that the embedded stream was used.

The documentation for this class was generated from the following file: