18#ifndef _LOG4CXX_QT_MESSAGE_BUFFER_H
19#define _LOG4CXX_QT_MESSAGE_BUFFER_H
22#if LOG4CXX_UNICHAR_API || LOG4CXX_LOGCHAR_IS_UNICHAR
23 inline LOG4CXX_NS::helpers::UniCharMessageBuffer&
24operator<<(LOG4CXX_NS::helpers::UniCharMessageBuffer& mb,
const QString& msg)
26 return mb << msg.utf16();
29#if LOG4CXX_WCHAR_T_API
30 inline LOG4CXX_NS::helpers::WideMessageBuffer&
31operator<<(LOG4CXX_NS::helpers::WideMessageBuffer& mb,
const QString& msg)
33 return mb << msg.toStdWString();
36 inline LOG4CXX_NS::helpers::WideMessageBuffer&
37operator<<(LOG4CXX_NS::helpers::MessageBuffer& mb,
const QString& msg)
39 return mb << msg.toStdWString();
42 inline LOG4CXX_NS::helpers::UniCharMessageBuffer&
43operator<<(LOG4CXX_NS::helpers::MessageBuffer& mb,
const QString& msg)
45 return mb << msg.utf16();
51#if LOG4CXX_WCHAR_T_API
52 inline LOG4CXX_NS::helpers::WideMessageBuffer&
53operator<<(LOG4CXX_NS::helpers::WideMessageBuffer& mb,
const QString& msg)
55 return mb << msg.toStdWString();
58 inline LOG4CXX_NS::helpers::WideMessageBuffer&
59operator<<(LOG4CXX_NS::helpers::MessageBuffer& mb,
const QString& msg)
61 return mb << msg.toStdWString();
64 inline LOG4CXX_NS::helpers::CharMessageBuffer&
65operator<<(LOG4CXX_NS::helpers::CharMessageBuffer& mb,
const QString& msg)
67 LOG4CXX_DECODE_QSTRING(tmp, msg);
log4cxx::helpers::UniCharMessageBuffer & operator<<(log4cxx::helpers::UniCharMessageBuffer &mb, const QString &msg)
Definition: log4cxx-qt/messagebuffer.h:24