|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
18 #include "boost/shared_ptr.hpp"
23 #include <QTextStream>
30 #include "QApplication"
35 class EventProcessingThread :
public QThread
49 qApp->processEvents();
66 QString isoDateFormat(
"yyyy-MM-dd");
67 QString isoDate = QDateTime::currentDateTime().toString(isoDateFormat);
86 mThread.reset(
new EventProcessingThread());
87 mThread->setObjectName(
"org.custusx.resource.core.logger");
116 mLogPath = absoluteLoggingFolderPath;
130 mWorker->installObserver(observer, resend);
136 mWorker->uninstallObserver(observer);
143 reporterThread->stopQtMessages();
151 reporterThread->startQtMessages();
boost::shared_ptr< class LogThread > LogThreadPtr
boost::shared_ptr< class ReporterThread > ReporterThreadPtr
virtual LogThreadPtr createWorker()=0
Namespace for all CustusX production code.
virtual ~EventProcessingThread()
boost::shared_ptr< class MessageObserver > MessageObserverPtr
QString getSettingsPath()
void uninstallObserver(MessageObserverPtr observer)
void loggingFolderChanged()
QString getDefaultLogPath() const
void installObserver(MessageObserverPtr observer, bool resend)
virtual void onEmittedMessage(Message message)
boost::shared_ptr< class QThread > mThread
QString getLoggingFolder() const
void emittedMessage(Message message)
emitted for each new message, in addition to writing to observer.
void setLoggingFolder(QString absoluteLoggingFolderPath)
static ProfileManager * getInstance(QString defaultProfile=QString("Laboratory"))
returns the only instance of this class