NorMIT-nav  18.04
An IGT application
cxSenderImpl.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 CXSenderImpl_H_
13 #define CXSenderImpl_H_
14 
15 #include "cxGrabberExport.h"
16 
17 #include "cxSender.h"
18 
19 #include <QObject>
20 #include <boost/shared_ptr.hpp>
21 #include <qtcpsocket.h>
22 #include "cxIGTLinkImageMessage.h"
24 #include "cxImage.h"
25 #include "cxTool.h"
26 
27 namespace cx
28 {
29 
36 class cxGrabber_EXPORT SenderImpl : public Sender
37 {
38 public:
40  virtual ~SenderImpl() {}
41 
45  virtual bool isReady() const = 0;
46 
47  virtual void send(PackagePtr package);
48 
49 protected:
52  virtual void send(ImagePtr msg) = 0;
55  virtual void send(ProbeDefinitionPtr msg) = 0;
56 };
57 
62 } /* namespace cx */
63 #endif /* CXSenderImpl_H_ */
virtual ~SenderImpl()
Definition: cxSenderImpl.h:40
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< struct Package > PackagePtr
boost::shared_ptr< class ProbeDefinition > ProbeDefinitionPtr
Namespace for all CustusX production code.