OutPutStream Class Reference
Inheritance diagram for OutPutStream:

Public Member Functions

 OutPutStream (std::ostream &stream, QTextEdit *text_edit)
 
 ~OutPutStream ()
 

Static Public Member Functions

static void registerQDebugMessageHandler ()
 

Protected Member Functions

virtual int_type overflow (int_type v)
 
virtual std::streamsize xsputn (const char *p, std::streamsize n)
 

Static Private Member Functions

static void myQDebugMessageHandler (QtMsgType, const QMessageLogContext &, const QString &msg)
 

Private Attributes

QTextEdit * log_window
 
std::streambuf * m_old_buf
 
std::ostream & m_stream
 
std::string m_string
 

Detailed Description

Definition at line 36 of file ceditor/MainWindow.cpp.

Constructor & Destructor Documentation

OutPutStream::OutPutStream ( std::ostream &  stream,
QTextEdit *  text_edit 
)
inline

Definition at line 40 of file ceditor/MainWindow.cpp.

References log_window, and m_old_buf.

OutPutStream::~OutPutStream ( )
inline

Definition at line 47 of file ceditor/MainWindow.cpp.

References log_window, m_old_buf, m_stream, and m_string.

Member Function Documentation

static void OutPutStream::myQDebugMessageHandler ( QtMsgType  ,
const QMessageLogContext &  ,
const QString &  msg 
)
inlinestaticprivate

Definition at line 97 of file ceditor/MainWindow.cpp.

Referenced by registerQDebugMessageHandler().

virtual int_type OutPutStream::overflow ( int_type  v)
inlineprotectedvirtual

Definition at line 63 of file ceditor/MainWindow.cpp.

References log_window.

static void OutPutStream::registerQDebugMessageHandler ( )
inlinestatic

Definition at line 56 of file ceditor/MainWindow.cpp.

References myQDebugMessageHandler().

Referenced by MainWindow::MainWindow().

virtual std::streamsize OutPutStream::xsputn ( const char *  p,
std::streamsize  n 
)
inlineprotectedvirtual

Definition at line 72 of file ceditor/MainWindow.cpp.

References te::at::End, and log_window.

Member Data Documentation

QTextEdit* OutPutStream::log_window
private

Definition at line 106 of file ceditor/MainWindow.cpp.

Referenced by OutPutStream(), overflow(), xsputn(), and ~OutPutStream().

std::streambuf* OutPutStream::m_old_buf
private

Definition at line 103 of file ceditor/MainWindow.cpp.

Referenced by OutPutStream(), and ~OutPutStream().

std::ostream& OutPutStream::m_stream
private

Definition at line 102 of file ceditor/MainWindow.cpp.

Referenced by ~OutPutStream().

std::string OutPutStream::m_string
private

Definition at line 104 of file ceditor/MainWindow.cpp.

Referenced by ~OutPutStream().


The documentation for this class was generated from the following file: