NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
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)
 
void stopQtMessages ()
 
void startQtMessages ()
 

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 56 of file cxLog.h.

Constructor & Destructor Documentation

◆ ~Log()

cx::Log::~Log ( )
virtual

Definition at line 59 of file cxLog.cpp.

◆ Log()

cx::Log::Log ( )
protected

Definition at line 54 of file cxLog.cpp.

Member Function Documentation

◆ createWorker()

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

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

◆ getDefaultLogPath()

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

Definition at line 64 of file cxLog.cpp.

◆ getLoggingFolder()

QString cx::Log::getLoggingFolder ( ) const

Definition at line 122 of file cxLog.cpp.

◆ initializeObject()

void cx::Log::initializeObject ( )
protected

Definition at line 72 of file cxLog.cpp.

◆ installObserver()

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

Definition at line 127 of file cxLog.cpp.

◆ loggingFolderChanged

void cx::Log::loggingFolderChanged ( )
signal

◆ onEmittedMessage

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

Definition at line 78 of file cxLog.h.

◆ setLoggingFolder()

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

Definition at line 114 of file cxLog.cpp.

◆ startQtMessages()

void cx::Log::startQtMessages ( )

Definition at line 147 of file cxLog.cpp.

◆ startThread()

void cx::Log::startThread ( )
protected

Definition at line 81 of file cxLog.cpp.

◆ stopQtMessages()

void cx::Log::stopQtMessages ( )

Definition at line 139 of file cxLog.cpp.

◆ stopThread()

void cx::Log::stopThread ( )
protected

Definition at line 98 of file cxLog.cpp.

◆ uninstallObserver()

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

Definition at line 133 of file cxLog.cpp.

Member Data Documentation

◆ mLogPath

QString cx::Log::mLogPath
protected

Definition at line 88 of file cxLog.h.

◆ mThread

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

Definition at line 89 of file cxLog.h.

◆ mWorker

LogThreadPtr cx::Log::mWorker
protected

Definition at line 90 of file cxLog.h.


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