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.
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
int SetString(std::string &string)
Sets the string by std::string.
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
std::string m_String
The string.
virtual int GetBodyPackSize()
Gets the size of the serialized body.
SmartPointer< Self > Pointer
igtlTypeMacro(igtl::StringMessage, igtl::MessageBase)
int SetEncoding(igtlUint16 enc)
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...