NorMIT-nav  22.09
An IGT application
cxAcquisitionServiceNull.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 
13 #include "cxLogger.h"
14 
15 namespace cx
16 {
17 
19 {
20 }
21 
23 {
24  return true;
25 }
26 
28 {
29  printWarning();
30  return RecordSessionPtr();
31 }
32 
33 std::vector<RecordSessionPtr> AcquisitionServiceNull::getSessions()
34 {
35  printWarning();
36  return std::vector<RecordSessionPtr>();
37 }
38 
40 {
41  printWarning();
42  return false;
43 }
44 
46 {
47  printWarning();
48  return QString();
49 }
50 
52 {
53  printWarning();
55 }
56 
57 void AcquisitionServiceNull::startRecord(TYPES context, QString category, RecordSessionPtr session)
58 {
59  printWarning();
60 }
61 
63 {
64  printWarning();
65 }
66 
68 {
69  printWarning();
70 }
71 
73 {
74  printWarning();
75 }
76 
78 {
79  printWarning();
80 }
81 
83 {
84  printWarning();
85  return 0;
86 }
87 
88 void AcquisitionServiceNull::printWarning() const
89 {
90  reportWarning("Trying to use AcquisitionServiceNull. Is AcquisitionService (org.custusx.acquisition) disabled?");
91 }
92 
93 } // cx
cx::AcquisitionServiceNull::getNumberOfSavingThreads
virtual int getNumberOfSavingThreads() const
Definition: cxAcquisitionServiceNull.cpp:82
cx::AcquisitionServiceNull::AcquisitionServiceNull
AcquisitionServiceNull()
Definition: cxAcquisitionServiceNull.cpp:18
cxLogger.h
cx::AcquisitionServiceNull::getSessions
virtual std::vector< RecordSessionPtr > getSessions()
Definition: cxAcquisitionServiceNull.cpp:33
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::AcquisitionServiceNull::getInfoText
virtual QString getInfoText(TYPES context) const
Definition: cxAcquisitionServiceNull.cpp:45
cx::AcquisitionService::sNOT_RUNNING
@ sNOT_RUNNING
Definition: cxAcquisitionService.h:55
cx::AcquisitionServiceNull::isNull
virtual bool isNull()
Definition: cxAcquisitionServiceNull.cpp:22
cxAcquisitionServiceNull.h
cx::AcquisitionServiceNull::getState
virtual STATE getState() const
Definition: cxAcquisitionServiceNull.cpp:51
cx::AcquisitionServiceNull::startRecord
virtual void startRecord(TYPES context, QString category, RecordSessionPtr session)
Definition: cxAcquisitionServiceNull.cpp:57
cx::AcquisitionServiceNull::stopRecord
virtual void stopRecord()
Definition: cxAcquisitionServiceNull.cpp:62
cx::AcquisitionServiceNull::stopPostProcessing
virtual void stopPostProcessing()
Definition: cxAcquisitionServiceNull.cpp:77
cx::AcquisitionServiceNull::startPostProcessing
virtual void startPostProcessing()
Definition: cxAcquisitionServiceNull.cpp:72
cx::AcquisitionServiceNull::getLatestSession
virtual RecordSessionPtr getLatestSession()
Definition: cxAcquisitionServiceNull.cpp:27
cx::AcquisitionServiceNull::isReady
virtual bool isReady(TYPES context) const
Definition: cxAcquisitionServiceNull.cpp:39
cx::AcquisitionService::TYPES
QFlags< TYPE > TYPES
Definition: cxAcquisitionService.h:48
cx::AcquisitionServiceNull::cancelRecord
virtual void cancelRecord()
Definition: cxAcquisitionServiceNull.cpp:67
cx::RecordSessionPtr
boost::shared_ptr< class RecordSession > RecordSessionPtr
Definition: cxAcquisitionService.h:28
cx::reportWarning
void reportWarning(QString msg)
Definition: cxLogger.cpp:70
cx::AcquisitionService::STATE
STATE
Definition: cxAcquisitionService.h:51