BCESolve
BCELogStream Class Reference

Redirects all couts in the program to the log tab. More...

#include <bcelogstream.hpp>

Inheritance diagram for BCELogStream:
Collaboration diagram for BCELogStream:

Public Member Functions

 BCELogStream (std::ostream &stream, QTextEdit *text_edit)
 Constructor.
 
 ~BCELogStream ()
 Destructor.
 

Protected Member Functions

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

Private Attributes

QTextEdit * log_window
 Text Edit where redirected stout/stderr will be sent.
 
std::ostream & m_stream
 Type of ostream redirected (e.g. "cout," "cerr," etc.)
 
std::streambuf * m_old_buf
 
std::string m_string
 

Detailed Description

Redirects all couts in the program to the log tab.

This class, initialized in main, redirects all couts to the QTextEdit in the log tab. This class contains QMetaObject calls in order to redirect couts from other threads.


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