18 #ifndef _LOG4CXX_MESSAGE_BUFFER_H 19 #define _LOG4CXX_MESSAGE_BUFFER_H 21 #include <log4cxx/log4cxx.h> 22 #include <log4cxx/logstring.h> 26 #pragma warning ( push ) 27 #pragma warning ( disable: 4251 4275 ) 37 void MessageBufferUseStaticStream();
39 typedef std::ios_base& (*ios_base_manip)(std::ios_base&);
90 std::ostream& operator<<(ios_base_manip manip);
96 std::ostream& operator<<(
bool val);
103 std::ostream& operator<<(
short val);
109 std::ostream& operator<<(
int val);
115 std::ostream& operator<<(
unsigned int val);
121 std::ostream& operator<<(
long val);
127 std::ostream& operator<<(
unsigned long val);
133 std::ostream& operator<<(
float val);
139 std::ostream& operator<<(
double val);
145 std::ostream& operator<<(
long double val);
151 std::ostream& operator<<(
void* val);
156 operator std::basic_ostream<char>& ();
163 const std::basic_string<char>& str(std::basic_ostream<char>& os);
176 bool hasStream()
const;
191 std::basic_string<char> buf;
195 std::basic_ostringstream<char>* stream;
201 return ((std::basic_ostream<char>&) os) << val;
204 #if LOG4CXX_UNICHAR_API || LOG4CXX_CFSTRING_API || LOG4CXX_LOGCHAR_IS_UNICHAR 222 typedef std::basic_ostream<UniChar> uostream;
251 #if LOG4CXX_CFSTRING_API 266 uostream& operator<<(ios_base_manip manip);
272 uostream& operator<<(
bool val);
279 uostream& operator<<(
short val);
285 uostream& operator<<(
int val);
291 uostream& operator<<(
unsigned int val);
297 uostream& operator<<(
long val);
303 uostream& operator<<(
unsigned long val);
309 uostream& operator<<(
float val);
315 uostream& operator<<(
double val);
321 uostream& operator<<(
long double val);
327 uostream& operator<<(
void* val);
333 operator uostream& ();
340 const std::basic_string<UniChar>& str(uostream& os);
353 bool hasStream()
const;
368 std::basic_string<UniChar> buf;
372 std::basic_ostringstream<UniChar>* stream;
378 return ((UniCharMessageBuffer::uostream&) os) << val;
382 #if LOG4CXX_WCHAR_T_API 432 std::basic_ostream<wchar_t>& operator<<(ios_base_manip manip);
438 std::basic_ostream<wchar_t>& operator<<(
bool val);
445 std::basic_ostream<wchar_t>& operator<<(
short val);
451 std::basic_ostream<wchar_t>& operator<<(
int val);
457 std::basic_ostream<wchar_t>& operator<<(
unsigned int val);
463 std::basic_ostream<wchar_t>& operator<<(
long val);
469 std::basic_ostream<wchar_t>& operator<<(
unsigned long val);
475 std::basic_ostream<wchar_t>& operator<<(
float val);
481 std::basic_ostream<wchar_t>& operator<<(
double val);
487 std::basic_ostream<wchar_t>& operator<<(
long double val);
493 std::basic_ostream<wchar_t>& operator<<(
void* val);
499 operator std::basic_ostream<wchar_t>& ();
506 const std::basic_string<wchar_t>& str(std::basic_ostream<wchar_t>& os);
519 bool hasStream()
const;
534 std::basic_string<wchar_t> buf;
538 std::basic_ostringstream<wchar_t>* stream;
544 return ((std::basic_ostream<wchar_t>&) os) << val;
567 operator std::ostream& ();
613 const std::string& str(std::ostream& os);
644 #if LOG4CXX_UNICHAR_API || LOG4CXX_CFSTRING_API 675 #if LOG4CXX_CFSTRING_API 690 std::ostream& operator<<(ios_base_manip manip);
697 std::ostream& operator<<(
bool val);
704 std::ostream& operator<<(
short val);
710 std::ostream& operator<<(
int val);
716 std::ostream& operator<<(
unsigned int val);
722 std::ostream& operator<<(
long val);
728 std::ostream& operator<<(
unsigned long val);
734 std::ostream& operator<<(
float val);
740 std::ostream& operator<<(
double val);
746 std::ostream& operator<<(
long double val);
752 std::ostream& operator<<(
void* val);
767 const std::wstring& str(std::basic_ostream<wchar_t>& os);
769 #if LOG4CXX_UNICHAR_API || LOG4CXX_CFSTRING_API 784 const std::basic_string<UniChar>& str(UniCharMessageBuffer::uostream& os);
791 bool hasStream()
const;
812 #if LOG4CXX_UNICHAR_API || LOG4CXX_CFSTRING_API 823 return ((std::ostream&) os) << val;
826 #if LOG4CXX_LOGCHAR_IS_UTF8 830 #if LOG4CXX_LOGCHAR_IS_WCHAR 834 #if LOG4CXX_LOGCHAR_IS_UNICHAR 846 #if defined(_MSC_VER) 847 #pragma warning (pop) This class is designed to support insertion operations in the message argument to the LOG4CXX_INFO an...
Definition: messagebuffer.h:388
This class is designed to support insertion operations in the message argument to the LOG4CXX_INFO an...
Definition: messagebuffer.h:210
This class is used by the LOG4CXX_INFO and similar macros to support insertion operators in the messa...
Definition: messagebuffer.h:552
This class is used by the LOG4CXX_INFO and similar macros to support insertion operators in the messa...
Definition: messagebuffer.h:46
Definition: appender.h:33