NorMIT-nav  22.09
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_ */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::Sender::Sender
Sender()
Definition: cxSender.h:53
cxImage.h
cx::ProbeDefinitionPtr
boost::shared_ptr< class ProbeDefinition > ProbeDefinitionPtr
Definition: cxImageReceiverThread.h:32
cx::Package
Definition: cxSender.h:34
cxTool.h
cx::ImagePtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
cx::Package::mProbe
ProbeDefinitionPtr mProbe
Definition: cxSender.h:37
cx::PackagePtr
boost::shared_ptr< struct Package > PackagePtr
Definition: cxMHDImageStreamer.h:27
cx::SenderPtr
boost::shared_ptr< Sender > SenderPtr
Definition: cxSender.h:64
cx::Package::mImage
ImagePtr mImage
Definition: cxSender.h:36
cx::Sender::~Sender
virtual ~Sender()
Definition: cxSender.h:54
cx::Sender
Definition: cxSender.h:49