#include <qDebugStream.h>
|
enum | MsgStreamType { msgStreamOut = 1,
msgStreamErr = 2,
msgStreamIn = 3
} |
|
|
void | flushStream (QString, ito::QDebugStream::MsgStreamType) |
|
|
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
|
|
virtual std::streamsize | xsputn (const char *p, std::streamsize n) |
| method invoked if new content has been added to stream
|
|
class inherits from std::basic_streambuf and is able to transform a stream, like std::cout or std::cerr, into emitted signals
ito::QDebugStream::QDebugStream |
( |
std::ostream & |
stream, |
|
|
ito::QDebugStream::MsgStreamType |
type |
|
) |
| |
constructor
initializes this instance and stores actual content of stream in m_old_buf
- Parameters
-
stream | Stream of type std::ostream which should be observed |
type | message type of enumeration tMsgType which corresponds to the stream |
lineBreak | string representation of line break, default:
|
- Returns
- description
- See also
- tMsgType
ito::QDebugStream::~QDebugStream |
( |
| ) |
|
destructor
destroys this instance and the stream observation and emits remaining string in the buffer. Restores m_old_buf to the stream.
void ito::QDebugStream::flushStream |
( |
QString |
, |
|
|
ito::QDebugStream::MsgStreamType |
|
|
) |
| |
|
signal |
signal emits a string which appeared in the observed stream together with indicating the corresponding message type
std::streambuf* ito::QDebugStream::m_old_buf |
|
private |
content of stream at time when this instance starts the observation of the stream is stored here and re-given to the stream, when this instance is destroyed
std::ostream& ito::QDebugStream::m_stream |
|
private |
standard-ostream which is observed by this instance
std::string ito::QDebugStream::m_string |
|
private |
buffer string, containing parts of the stream which have not been emitted yet
ito::QDebugStream::MsgStreamType ito::QDebugStream::msg_type |
|
private |
message type of enumeration tMsgType which belongs to this instance of QDebugStream
The documentation for this class was generated from the following files:
- D:/itom/sources/itom/Qitom/python/qDebugStream.h
- D:/itom/sources/itom/Qitom/python/qDebugStream.cpp