CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxtestSender.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 CXTESTSENDER_H_
13 #define CXTESTSENDER_H_
14 
15 #include "cxGrabberExport.h"
16 
17 #include "cxSender.h"
18 #include <boost/shared_ptr.hpp>
19 
20 namespace cxtest {
21 
22 /*
23  * TestSender
24  *
25  * Simulates sending images.
26  * Can be used with a imagestreamer.
27  *
28  * \date May 13, 2013
29  * \author Janne Beate Bakeng, SINTEF
30  */
31 class cxGrabber_EXPORT TestSender : public cx::Sender
32 {
33  Q_OBJECT
34 public:
36  virtual ~TestSender() {}
37 
38  virtual bool isReady() const;
39 
40  virtual void send(cx::PackagePtr package);
41 
42  cx::PackagePtr getSentPackage();
43 
44 signals:
45  void newPackage();
46 
47 private:
48  cx::PackagePtr mPackage;
49 
50 };
51 typedef boost::shared_ptr<TestSender> TestSenderPtr;
52 
53 } /* namespace cxtest */
54 #endif /* CXTESTSENDER_H_ */
virtual ~TestSender()
Definition: cxtestSender.h:36
boost::shared_ptr< struct Package > PackagePtr
boost::shared_ptr< TestSender > TestSenderPtr
Definition: cxtestSender.h:51