Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITKIGTLDUMMYMESSAGE_H
14 #define MITKIGTLDUMMYMESSAGE_H
15 
16 #include "MitkOpenIGTLinkExports.h"
17 
18 #include "igtlObject.h"
19 #include "igtlStringMessage.h"
21 
22 namespace mitk
23 {
24 
29 class MITKOPENIGTLINK_EXPORT IGTLDummyMessage : public igtl::StringMessage
30 {
31 public:
33  typedef StringMessage Superclass;
34  typedef igtl::SmartPointer<Self> Pointer;
35  typedef igtl::SmartPointer<const Self> ConstPointer;
36 
37  igtlTypeMacro( mitk::IGTLDummyMessage, igtl::StringMessage )
38  igtlNewMacro( mitk::IGTLDummyMessage )
39 
40 public:
44  void SetDummyString( const std::string& dummyString );
45 
49  std::string GetDummyString();
50 
54  igtl::MessageBase::Pointer Clone() override ;
55 
56 protected:
58  ~IGTLDummyMessage() override;
59 
60  std::string m_dummyString;
61 };
62 
64 
65 } // namespace mitk
66 
67 #endif
igtl::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKOPENIGTLINK_EXPORT
#define mitkIGTMessageCloneClassMacro(messagetype, classname)
igtl::SmartPointer< const Self > ConstPointer
This class is a dummy message to show how to implement a new message type.
static mitk::PlanarFigure::Pointer Clone(mitk::PlanarFigure::Pointer original)