15#ifndef __igtlCommandMessage_h
16#define __igtlCommandMessage_h
30 static const int validEncodings[257];
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
int SetCommandContent(const char *string)
Sets the string by character array.
std::string m_Command
The command stored as an XML encoded string.
igtlUint16 GetContentEncoding() const
igtlUint32 GetCommandContentLength() const
Gets the length of the command content.
std::string GetCommandContent() const
Gets the string.
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
SmartPointer< Self > Pointer
int SetContentEncoding(igtlUint16 enc)
std::string GetCommandName() const
Get the command name.
igtlUint32 m_CommandId
The unique ID of the command.
int SetCommandName(const std::string &aCommandName)
Sets the command name by std::string.
SmartPointer< const Self > ConstPointer
int SetCommandId(igtlUint32 aId)
Sets the command ID.
igtlUint32 GetCommandId() const
Gets the command ID.
int SetCommandContent(const std::string &string)
Sets the string by std::string.
int SetCommandName(const char *aCommandName)
Sets the command name.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
SmartPointer< Self > Pointer
int SetCommandErrorString(const char *aCommandName)
Sets the error string.
int SetCommandErrorString(const std::string &aCommandName)
Sets the error string by std::string.
std::string GetCommandErrorString() const
Get the error string.
CommandMessage Superclass
SmartPointer< const Self > ConstPointer
Implements transparent reference counting.
#define igtlTypeMacro(thisClass, superclass)
#define IGTL_COMMAND_NAME_SIZE
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...