CustusX  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::Log Class Referenceabstract

#include <cxLog.h>

Inheritance diagram for cx::Log:
cx::LogFileWatcher cx::Reporter

Signals

void loggingFolderChanged ()
 

Public Member Functions

virtual ~Log ()
 
QString getLoggingFolder () const
 
void setLoggingFolder (QString absoluteLoggingFolderPath)
 
void installObserver (MessageObserverPtr observer, bool resend)
 
void uninstallObserver (MessageObserverPtr observer)
 

Protected Slots

virtual void onEmittedMessage (Message message)
 

Protected Member Functions

virtual LogThreadPtr createWorker ()=0
 
 Log ()
 
void initializeObject ()
 
void startThread ()
 
void stopThread ()
 
QString getDefaultLogPath () const
 

Protected Attributes

QString mLogPath
 
boost::shared_ptr< class QThread > mThread
 
LogThreadPtr mWorker
 

Detailed Description

Definition at line 76 of file cxLog.h.

Constructor & Destructor Documentation

cx::Log::~Log ( )
virtual

Definition at line 80 of file cxLog.cpp.

cx::Log::Log ( )
protected

Definition at line 75 of file cxLog.cpp.

Member Function Documentation

virtual LogThreadPtr cx::Log::createWorker ( )
protectedpure virtual

Implemented in cx::Reporter, and cx::LogFileWatcher.

QString cx::Log::getDefaultLogPath ( ) const
protected

Definition at line 85 of file cxLog.cpp.

QString cx::Log::getLoggingFolder ( ) const

Definition at line 143 of file cxLog.cpp.

void cx::Log::initializeObject ( )
protected

Definition at line 93 of file cxLog.cpp.

void cx::Log::installObserver ( MessageObserverPtr  observer,
bool  resend 
)

Definition at line 148 of file cxLog.cpp.

void cx::Log::loggingFolderChanged ( )
signal
virtual void cx::Log::onEmittedMessage ( Message  message)
inlineprotectedvirtualslot

Definition at line 96 of file cxLog.h.

void cx::Log::setLoggingFolder ( QString  absoluteLoggingFolderPath)

Definition at line 135 of file cxLog.cpp.

void cx::Log::startThread ( )
protected

Definition at line 102 of file cxLog.cpp.

void cx::Log::stopThread ( )
protected

Definition at line 119 of file cxLog.cpp.

void cx::Log::uninstallObserver ( MessageObserverPtr  observer)

Definition at line 154 of file cxLog.cpp.

Member Data Documentation

QString cx::Log::mLogPath
protected

Definition at line 106 of file cxLog.h.

boost::shared_ptr<class QThread> cx::Log::mThread
protected

Definition at line 107 of file cxLog.h.

LogThreadPtr cx::Log::mWorker
protected

Definition at line 108 of file cxLog.h.


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