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.
igtlNewMacro(igtl::StatusMessage)
SmartPointer< Self > Pointer
int GetCode()
Gets the status code.
char * m_StatusMessage
A pointer to the byte array of the status message.
virtual int GetBodyPackSize()
Gets the size of the serialized body.
unsigned char * m_StatusHeader
A pointer to the byte array of the status header.
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
igtlUint16 m_Code
The error code.
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
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.
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...