CustusX  22.04-rc5
An IGT application
cxSender.h
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 #ifndef CXSender_H_
13 #define CXSender_H_
14 
15 #include "cxGrabberExport.h"
16 
17 #include <QObject>
18 #include <boost/shared_ptr.hpp>
19 #include <qtcpsocket.h>
20 #include "cxIGTLinkImageMessage.h"
22 #include "cxImage.h"
23 #include "cxTool.h"
24 
25 namespace cx
26 {
27 
34 struct Package
35 {
38 };
39 
40 typedef boost::shared_ptr<Package> PackagePtr;
41 
49 class cxGrabber_EXPORT Sender : public QObject
50 {
51  Q_OBJECT
52 public:
53  Sender() {}
54  virtual ~Sender() {}
55 
59  virtual bool isReady() const = 0;
60 
61  virtual void send(PackagePtr package) = 0;
62 
63 };
64 typedef boost::shared_ptr<Sender> SenderPtr;
65 
70 } /* namespace cx */
71 #endif /* CXSender_H_ */
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
virtual ~Sender()
Definition: cxSender.h:54
ImagePtr mImage
Definition: cxSender.h:36
boost::shared_ptr< struct Package > PackagePtr
ProbeDefinitionPtr mProbe
Definition: cxSender.h:37
boost::shared_ptr< Sender > SenderPtr
Definition: cxSender.h:64
boost::shared_ptr< class ProbeDefinition > ProbeDefinitionPtr
Namespace for all CustusX production code.