Medical Imaging Interaction Toolkit  2023.04.99-980ed1b6
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.


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


 DataCollection - Class to facilitate loading/accessing structured data.


#define mitkIGTMessageCloneClassMacro(messagetype, classname)

Macro Definition Documentation

◆ mitkIGTMessageCloneClassMacro

#define mitkIGTMessageCloneClassMacro (   messagetype,

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 66 of file mitkIGTLMessageCloneHandler.h.