15#ifndef __igtlStatusMessage_h
16#define __igtlStatusMessage_h
70 STATUS_UNKNOWN_ERROR = 2,
71 STATUS_PANICK_MODE = 3,
73 STATUS_ACCESS_DENIED = 5,
77 STATUS_CHECKSUM_ERROR = 9,
78 STATUS_CONFIG_ERROR = 10,
79 STATUS_RESOURCE_ERROR = 11,
80 STATUS_UNKNOWN_INSTRUCTION = 12,
81 STATUS_NOT_READY = 13,
82 STATUS_MANUAL_MODE = 14,
84 STATUS_NOT_PRESENT = 16,
85 STATUS_UNKNOWN_VERSION = 17,
86 STATUS_HARDWARE_FAILURE = 18,
87 STATUS_SHUT_DOWN = 19,
134 char m_ErrorName[20];
A class for the GET_STATUS message type.
HeaderOnlyMessageBase Superclass
SmartPointer< Self > Pointer
igtlNewMacro(igtl::GetStatusMessage)
SmartPointer< const Self > ConstPointer
igtlTypeMacro(igtl::GetStatusMessage, igtl::HeaderOnlyMessageBase)
Implements transparent reference counting.
const char * GetErrorName()
Gets the error name.
void SetErrorName(const char *name)
Sets the error name. The error name can be defined by a developer.
igtlTypeMacro(igtl::StatusMessage, igtl::MessageBase)
void SetStatusString(const char *str)
Sets the status string.
void SetSubCode(igtlInt64 subcode)
Sets the sub code.
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
igtlNewMacro(igtl::StatusMessage)
SmartPointer< Self > Pointer
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
int GetCode()
Gets the status code.
char * m_StatusMessage
A pointer to the byte array of the status message.
unsigned char * m_StatusHeader
A pointer to the byte array of the status header.
igtlUint16 m_Code
The error code.
igtlInt64 GetSubCode()
Gets the sub code.
void SetCode(int code)
Sets the status code.
const char * GetStatusString()
Gets the status string.
std::string m_StatusMessageString
The status message string.
SmartPointer< const Self > ConstPointer
igtlInt64 m_SubCode
The sub code.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...