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,
94 void SetCode(
int code);
100 void SetSubCode(igtlInt64 subcode);
103 igtlInt64 GetSubCode();
106 void SetErrorName(
const char* name);
109 const char* GetErrorName();
112 void SetStatusString(
const char* str);
115 const char* GetStatusString();
123 virtual int GetBodyPackSize();
124 virtual int PackBody();
125 virtual int UnpackBody();
134 char m_ErrorName[20];
150 #endif // _igtlStatusMessage_h
char * m_StatusMessage
A pointer to the byte array of the status message.
#define igtlTypeMacro(thisClass, superclass)
SmartPointer< Self > Pointer
HeaderOnlyMessageBase Superclass
std::string m_StatusMessageString
The status message string.
SmartPointer< const Self > ConstPointer
A class for the GET_STATUS message type.
igtlUint16 m_Code
The error code.
SmartPointer< const Self > ConstPointer
igtlInt64 m_SubCode
The sub code.
unsigned char * m_StatusHeader
A pointer to the byte array of the status header.
SmartPointer< Self > Pointer