CustusX  22.04-rc5
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
virtual int getNumberOfSavingThreads() const
virtual QString getInfoText(TYPES context) const
virtual RecordSessionPtr getLatestSession()
virtual bool isReady(TYPES context) const
boost::shared_ptr< class RecordSession > RecordSessionPtr
void reportWarning(QString msg)
Definition: cxLogger.cpp:70
virtual void startRecord(TYPES context, QString category, RecordSessionPtr session)
virtual std::vector< RecordSessionPtr > getSessions()
Namespace for all CustusX production code.