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>
53 virtual std::basic_streambuf<char>::int_type
overflow(int_type v);
55 virtual std::streamsize
xsputn(
const char *p, std::streamsize n);
62 int m_randWaitThreshold;
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:95
virtual std::streamsize xsputn(const char *p, std::streamsize n)
method invoked if new content has been added to stream
Definition: qDebugStream.cpp:76
void flushStream(QString, ito::tStreamMessageType)
std::streambuf * m_old_buf
Definition: qDebugStream.h:59
ito::tStreamMessageType msg_type
Definition: qDebugStream.h:61
Definition: apiFunctionsGraph.cpp:39
std::string m_string
Definition: qDebugStream.h:60
QDebugStream(std::ostream &stream, ito::tStreamMessageType)
constructor
Definition: qDebugStream.cpp:40
~QDebugStream()
destructor
Definition: qDebugStream.cpp:63
tStreamMessageType
Definition: typeDefs.h:76
std::ostream & m_stream
Definition: qDebugStream.h:58
Definition: qDebugStream.h:38