15#ifndef __igtlStringMessage_h
16#define __igtlStringMessage_h
25#define IGTL_STRING_MESSAGE_DEFAULT_ENCODING 3
Implements transparent reference counting.
THe STRING message type is used for transferring a character string. It supports character strings up...
int SetString(const char *string)
Sets the string by character array.
int SetString(const std::string &string)
Sets the string by std::string.
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.
std::string m_String
The string.
SmartPointer< Self > Pointer
igtlTypeMacro(igtl::StringMessage, igtl::MessageBase)
int SetEncoding(igtlUint16 enc)
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
SmartPointer< const Self > ConstPointer
igtlNewMacro(igtl::StringMessage)
const char * GetString()
Gets the string.
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...