14 #ifndef __igtlCapabilityMessage_h
15 #define __igtlCapabilityMessage_h
44 virtual int PackBody() { AllocatePack();
return 1; };
65 void SetTypes(std::vector<std::string> types);
66 int SetType(
int id,
const char* name);
67 const char* GetType(
int id);
72 std::vector<std::string>
GetTypes() {
return m_TypeNames; }
80 virtual int GetBodyPackSize();
81 virtual int PackBody();
82 virtual int UnpackBody();
91 #endif // __igtlCapabilityMessage_h
SmartPointer< const Self > ConstPointer
#define igtlTypeMacro(thisClass, superclass)
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
GetCapabilityMessage Self
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
void SetNumberOfTypes(int n)
std::vector< std::string > GetTypes()
std::vector< std::string > m_TypeNames
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
SmartPointer< const Self > ConstPointer
virtual int GetBodyPackSize()
Gets the size of the serialized body.