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