14#ifndef __igtlCapabilityMessage_h
15#define __igtlCapabilityMessage_h
44 virtual int PackBody() { AllocatePack();
return 1; };
72 std::vector<std::string>
GetTypes() {
return m_TypeNames; }
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
std::vector< std::string > GetTypes()
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
const char * GetType(int id)
void SetNumberOfTypes(int n)
igtlTypeMacro(igtl::CapabilityMessage, igtl::MessageBase)
SmartPointer< const Self > ConstPointer
virtual int GetBodyPackSize()
Gets the size of the serialized body.
igtlNewMacro(igtl::CapabilityMessage)
void SetTypes(std::vector< std::string > types)
int SetType(int id, const char *name)
SmartPointer< Self > Pointer
std::vector< std::string > m_TypeNames
igtlNewMacro(igtl::GetCapabilityMessage)
SmartPointer< const Self > ConstPointer
virtual int GetBodyPackSize()
Gets the size of the serialized body.
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
igtlTypeMacro(igtl::GetCapabilityMessage, igtl::MessageBase)
GetCapabilityMessage Self
SmartPointer< Self > Pointer
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
Implements transparent reference counting.
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...