CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxLogFileWatcher.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #include "cxLogFileWatcher.h"
13 #include "cxLogger.h"
14 #include <QtGlobal>
15 #include <iostream>
16 #include "boost/shared_ptr.hpp"
17 #include <QString>
18 #include <QMutex>
19 #include <QSound>
20 #include <QDir>
21 #include <QTextStream>
22 #include "cxTypeConversions.h"
23 #include "cxTime.h"
24 #include "cxMessageListener.h"
25 
27 
28 namespace cx
29 {
30 
32 {
33  LogFileWatcherPtr retval(new LogFileWatcher());
34  retval->initializeObject();
35  return retval;
36 }
37 
39 {
40  return LogThreadPtr(new LogFileWatcherThread());
41 }
42 
43 } //End namespace cx
virtual LogThreadPtr createWorker()
boost::shared_ptr< class LogFileWatcher > LogFileWatcherPtr
boost::shared_ptr< class LogThread > LogThreadPtr
Definition: cxLog.h:46
static LogFileWatcherPtr create()
Namespace for all CustusX production code.