OpenStructure
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() [1/5]

◆ TextLogger() [2/5]

TextLogger ( QIODevice *  device)

◆ TextLogger() [3/5]

TextLogger ( FILE *  fileHandle,
QIODevice::OpenMode  openMode = QIODevice::ReadWrite 
)

◆ TextLogger() [4/5]

TextLogger ( QString *  String,
QIODevice::OpenMode  openMode = QIODevice::ReadWrite 
)

◆ TextLogger() [5/5]

TextLogger ( const QByteArray &  array,
QIODevice::OpenMode  openMode = QIODevice::ReadOnly 
)

◆ ~TextLogger()

virtual ~TextLogger ( )
virtual

Member Function Documentation

◆ AppendCode

void AppendCode ( const QString &  text)
slot

◆ AppendOutput

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

◆ GetCodeLogging()

bool GetCodeLogging ( )

◆ GetErrorLogging()

bool GetErrorLogging ( )

◆ GetOutputLogging()

bool GetOutputLogging ( )

◆ SetCodeLogging()

void SetCodeLogging ( bool  flag)

◆ SetErrorLogging()

void SetErrorLogging ( bool  flag)

◆ SetOutputLogging()

void SetOutputLogging ( bool  flag)

Field Documentation

◆ log_code_

bool log_code_
protected

Definition at line 55 of file text_logger.hh.

◆ log_error_

bool log_error_
protected

Definition at line 57 of file text_logger.hh.

◆ log_output_

bool log_output_
protected

Definition at line 56 of file text_logger.hh.


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