Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIGTLDummyMessage.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKIGTLDUMMYMESSAGE_H
18 #define MITKIGTLDUMMYMESSAGE_H
19 
20 #include "MitkOpenIGTLinkExports.h"
21 
22 #include "igtlObject.h"
23 #include "igtlStringMessage.h"
25 
26 namespace mitk
27 {
28 
34 class MITKOPENIGTLINK_EXPORT IGTLDummyMessage: public igtl::StringMessage
35 {
36 public:
38  typedef StringMessage Superclass;
39  typedef igtl::SmartPointer<Self> Pointer;
40  typedef igtl::SmartPointer<const Self> ConstPointer;
41 
42  igtlTypeMacro( mitk::IGTLDummyMessage, igtl::StringMessage );
43  igtlNewMacro( mitk::IGTLDummyMessage );
44 
45 public:
49  void SetDummyString( const std::string& dummyString );
50 
54  std::string GetDummyString();
55 
60 
61 protected:
64 
65  std::string m_dummyString;
66 };
67 
68 
70 
71 
72 } // namespace mitk
73 
74 #endif
itk::SmartPointer< Self > Pointer
Pointer Clone() const
igtl::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkIGTMessageCloneClassMacro(messagetype, classname)
igtl::SmartPointer< const Self > ConstPointer
This class is a dummy message to show the how to implement a new message type.