27 #ifndef Q_DEBUG_STREAM_H 28 #define Q_DEBUG_STREAM_H 30 #include "../../common/typeDefs.h" 38 class QDebugStream :
public QObject,
public std::basic_streambuf<char>
50 QDebugStream(std::ostream &stream, ito::QDebugStream::MsgStreamType type);
54 void flushStream(QString, ito::QDebugStream::MsgStreamType);
59 virtual std::basic_streambuf<char>::int_type
overflow(int_type v);
61 virtual std::streamsize
xsputn(
const char *p, std::streamsize n);
ito::QDebugStream::MsgStreamType msg_type
Definition: qDebugStream.h:67
QDebugStream(std::ostream &stream, ito::QDebugStream::MsgStreamType type)
constructor
Definition: qDebugStream.cpp:38
virtual std::basic_streambuf< char >::int_type overflow(int_type v)
this method overwrites a corresponding method in basic_streambuf class and is invoked, if buffer risks to overflow
Definition: qDebugStream.cpp:79
virtual std::streamsize xsputn(const char *p, std::streamsize n)
method invoked if new content has been added to stream
Definition: qDebugStream.cpp:65
std::streambuf * m_old_buf
Definition: qDebugStream.h:65
Definition: apiFunctionsGraph.cpp:39
std::string m_string
Definition: qDebugStream.h:66
~QDebugStream()
destructor
Definition: qDebugStream.cpp:52
void flushStream(QString, ito::QDebugStream::MsgStreamType)
std::ostream & m_stream
Definition: qDebugStream.h:64
Definition: qDebugStream.h:38