Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIGTLMessageCloneHandler.h File Reference
#include "itkObject.h"
#include "mitkCommon.h"
#include "igtlObject.h"
#include "igtlMacro.h"
#include "igtlSocket.h"
#include "igtlMessageBase.h"
#include "MitkOpenIGTLinkExports.h"

Go to the source code of this file.

Classes

class  mitk::IGTLMessageCloneHandler
 Base class for clone handlers for igtl::MessageBase derived message types. More...
 

Namespaces

 mitk
 DataCollection - Class to facilitate loading/accessing structured data.
 

Macros

#define mitkIGTMessageCloneClassMacro(messagetype, classname)
 

Macro Definition Documentation

#define mitkIGTMessageCloneClassMacro (   messagetype,
  classname 
)

Description: The mitkIGTMessageCloneClassMacro() macro is to help developers to define message clone handler classes. It generates a chlid class of mitk::IGTLMessageCloneHandler. The developer only needs to implement Clone() after calling this macro. The following code shows how to define a handler that processes IMAGE message:

mitkIGTMessageCloneClassMacro(igtl::ImageMessage, TestImageMessageHandler); igtl::MessageBase::Pointer TestImageMessageHandler::Clone(igtl::MessageBase * message) { // do something }

Definition at line 70 of file mitkIGTLMessageCloneHandler.h.