/usr/include/openigtlink/igtlStatusMessage.h is in libopenigtlink1-dev 1.9.2~svn7468-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | /*=========================================================================
Program: Open IGT Link Library
Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlStatusMessage.h $
Language: C++
Date: $Date: 2009-12-16 23:58:02 -0500 (Wed, 16 Dec 2009) $
Version: $Revision: 5466 $
Copyright (c) Insight Software Consortium. All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __igtlStatusMessage_h
#define __igtlStatusMessage_h
#include "igtlObject.h"
//#include "igtlMacros.h"
#include "igtlMath.h"
#include "igtlMessageBase.h"
#include "igtlTypes.h"
namespace igtl
{
class IGTLCommon_EXPORT StatusMessage: public MessageBase
{
public:
typedef StatusMessage Self;
typedef MessageBase Superclass;
typedef SmartPointer<Self> Pointer;
typedef SmartPointer<const Self> ConstPointer;
igtlTypeMacro(igtl::StatusMessage, igtl::MessageBase);
igtlNewMacro(igtl::StatusMessage);
public:
/* Status codes -- see igtl_status.h */
enum {
STATUS_INVALID = 0,
STATUS_OK = 1,
STATUS_UNKNOWN_ERROR = 2,
STATUS_PANICK_MODE = 3, /* emergency */
STATUS_NOT_FOUND = 4, /* file, configuration, device etc */
STATUS_ACCESS_DENIED = 5,
STATUS_BUSY = 6,
STATUS_TIME_OUT = 7, /* Time out / Connection lost */
STATUS_OVERFLOW = 8, /* Overflow / Can't be reached */
STATUS_CHECKSUM_ERROR = 9, /* Checksum error */
STATUS_CONFIG_ERROR = 10, /* Configuration error */
STATUS_RESOURCE_ERROR = 11, /* Not enough resource (memory, storage etc) */
STATUS_UNKNOWN_INSTRUCTION = 12, /* Illegal/Unknown instruction */
STATUS_NOT_READY = 13, /* Device not ready (starting up)*/
STATUS_MANUAL_MODE = 14, /* Manual mode (device does not accept commands) */
STATUS_DISABLED = 15, /* Device disabled */
STATUS_NOT_PRESENT = 16, /* Device not present */
STATUS_UNKNOWN_VERSION = 17, /* Device version not known */
STATUS_HARDWARE_FAILURE = 18, /* Hardware failure */
STATUS_SHUT_DOWN = 19, /* Exiting / shut down in progress */
STATUS_NUM_TYPES = 20
};
public:
void SetCode(int code);
int GetCode();
void SetSubCode(igtlInt64 subcode);
igtlInt64 GetSubCode();
void SetErrorName(const char* name);
const char* GetErrorName();
void SetStatusString(const char* str);
const char* GetStatusString();
protected:
StatusMessage();
~StatusMessage();
protected:
virtual int GetBodyPackSize();
virtual int PackBody();
virtual int UnpackBody();
igtlUint16 m_Code;
igtlInt64 m_SubCode;
char m_ErrorName[20];
//BTX
std::string m_StatusMessageString;
//ETX
unsigned char* m_StatusHeader;
char* m_StatusMessage;
};
} // namespace igtl
#endif // _igtlStatusMessage_h
|