15#ifndef __igtlBindMessage_h
16#define __igtlBindMessage_h
236 void SetStatus(igtlUint8 status){ this->m_Status = status; }
int AppendChildMessage(igtl::MessageBase *child)
int SetNumberOfChildMessages(unsigned int n)
SmartPointer< Self > Pointer
igtlNewMacro(igtl::BindMessageBase)
void Init()
Initializes the BindMessageBase class.
int SetChildMessage(unsigned int i, igtl::MessageBase *child)
const char * GetChildMessageType(unsigned int i)
Gets the name of a child message specified by the index 'i'.
igtlTypeMacro(igtl::BindMessageBase, igtl::MessageBase)
std::vector< ChildMessageInfo > m_ChildMessages
A vector to manage a list of ChildMessageInfo structures.
SmartPointer< const Self > ConstPointer
int GetNumberOfChildMessages()
Gets the number of child messages bundled in the message.
A class for the BIND message type.
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
igtlNewMacro(igtl::BindMessage)
igtlTypeMacro(igtl::BindMessage, igtl::BindMessageBase)
SmartPointer< const Self > ConstPointer
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
int GetChildMessage(unsigned int i, igtl::MessageBase *child)
SmartPointer< Self > Pointer
BindMessageBase Superclass
SmartPointer< const Self > ConstPointer
BindMessageBase Superclass
igtlNewMacro(igtl::GetBindMessage)
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
SmartPointer< Self > Pointer
igtlTypeMacro(igtl::GetBindMessage, igtl::BindMessageBase)
int AppendChildMessage(const char *type, const char *name)
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
igtlNewMacro(igtl::RTSBindMessage)
igtlTypeMacro(igtl::RTSBindMessage, igtl::MessageBase)
igtlUint8 m_Status
Stores the status for the start/stop request.
SmartPointer< Self > Pointer
void SetStatus(igtlUint8 status)
Sets the status for the start/stop request. 'status' must be either RTSBindMessage::STATUS_SUCCESS or...
igtlUint8 GetStatus()
Gets the status for the start/stop request. 'status' must be either RTSBindMessage::STATUS_SUCCESS or...
SmartPointer< const Self > ConstPointer
Implements transparent reference counting.
SmartPointer< Self > Pointer
igtlNewMacro(igtl::StartBindMessage)
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
void SetResolution(igtlUint64 res)
SmartPointer< const Self > ConstPointer
igtlTypeMacro(igtl::StartBindMessage, igtl::GetBindMessage)
GetBindMessage Superclass
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
igtlUint64 GetResolution()
SmartPointer< Self > Pointer
igtlNewMacro(igtl::StopBindMessage)
SmartPointer< const Self > ConstPointer
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
igtlTypeMacro(igtl::StopBindMessage, igtl::MessageBase)
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...