OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Attributes
TextLogger Class Reference

#include <text_logger.hh>

Inherits QObject, and QTextStream.

Public Slots

void AppendCode (const QString &text)
 
void AppendOutput (unsigned int id, const QString &text)
 

Public Member Functions

 TextLogger ()
 
 TextLogger (QIODevice *device)
 
 TextLogger (FILE *fileHandle, QIODevice::OpenMode openMode=QIODevice::ReadWrite)
 
 TextLogger (QString *String, QIODevice::OpenMode openMode=QIODevice::ReadWrite)
 
 TextLogger (const QByteArray &array, QIODevice::OpenMode openMode=QIODevice::ReadOnly)
 
virtual ~TextLogger ()
 
void SetCodeLogging (bool flag)
 
void SetOutputLogging (bool flag)
 
void SetErrorLogging (bool flag)
 
bool GetCodeLogging ()
 
bool GetOutputLogging ()
 
bool GetErrorLogging ()
 

Protected Attributes

bool log_code_
 
bool log_output_
 
bool log_error_
 

Detailed Description

Definition at line 33 of file text_logger.hh.

Constructor & Destructor Documentation

TextLogger ( QIODevice *  device)
TextLogger ( FILE *  fileHandle,
QIODevice::OpenMode  openMode = QIODevice::ReadWrite 
)
TextLogger ( QString *  String,
QIODevice::OpenMode  openMode = QIODevice::ReadWrite 
)
TextLogger ( const QByteArray &  array,
QIODevice::OpenMode  openMode = QIODevice::ReadOnly 
)
virtual ~TextLogger ( )
virtual

Member Function Documentation

void AppendCode ( const QString &  text)
slot
void AppendOutput ( unsigned int  id,
const QString &  text 
)
slot
bool GetCodeLogging ( )
bool GetErrorLogging ( )
bool GetOutputLogging ( )
void SetCodeLogging ( bool  flag)
void SetErrorLogging ( bool  flag)
void SetOutputLogging ( bool  flag)

Field Documentation

bool log_code_
protected

Definition at line 55 of file text_logger.hh.

bool log_error_
protected

Definition at line 57 of file text_logger.hh.

bool log_output_
protected

Definition at line 56 of file text_logger.hh.


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