|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
15 #include "cxResourceExport.h"
23 #include "boost/shared_ptr.hpp"
24 #include "boost/function.hpp"
33 #include <QFileSystemWatcher>
73 QList<ActionType> mPendingActions;
77 void invokePendingAction();
87 typedef boost::function<void()> ActionType;
111 QPointer<ThreadMethodInvoker> mQueue;
113 int getDefaultTimeout(MESSAGE_LEVEL messageLevel)
const;
122 #endif // CXLOGTHREAD_H
MessageRepositoryPtr mRepository
virtual void executeSetLoggingFolder(QString absoluteLoggingFolderPath)=0
void processMessage(Message msg)
virtual void setLoggingFolder(QString absoluteLoggingFolderPath)
call during startup, will fail if called when running
boost::function< void()> ActionType
Namespace for all CustusX production code.
virtual void logMessage(Message msg)
virtual void installObserver(MessageObserverPtr observer, bool resend)
LogThread(QObject *parent=NULL)
boost::shared_ptr< class MessageObserver > MessageObserverPtr
Message cleanupMessage(Message message)
void callInLogThread(ActionType action)
void emittedMessage(Message message)
emitted for each new message, in addition to writing to observer.
ThreadMethodInvoker(QObject *parent)
void callInLogThread(ThreadMethodInvoker::ActionType action)
virtual void uninstallObserver(MessageObserverPtr observer)
boost::shared_ptr< class MessageRepository > MessageRepositoryPtr