Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippErrorNameType.h

Go to the documentation of this file.
00001 // 
00002 // DISCLAIMER: 
00003 //  This software was produced by the National Institute of Standards 
00004 //  and Technology (NIST), an agency of the U.S. government, and by statute is 
00005 //  not subject to copyright in the United States.  Recipients of this 
00006 //  software assume all responsibility associated with its operation,
00007 //  modification,maintenance, and subsequent redistribution. 
00008 //
00009 //  See NIST Administration Manual 4.09.07 b and Appendix I. 
00010 #pragma once
00011 #include "ippdme/ippdme.h"
00012 
00013 // this file indirectly defines :
00014 // typedef enum ippErrorNameType;
00015   typedef enum ippErrorNameType_ {
00016     GenericError              =99999,
00017     BufferFull                =   0 ,
00018     IllegalTag                =   1 ,
00019     NoSpaceAtPos6             =   2 ,
00020     Reserved3                 =   3 ,
00021     Reserved4                 =   4 ,
00022     Reserved5                 =   5 ,
00023     TransactionAborted        =   6 ,
00024     IllegalCharacter          =   7 ,
00025     ProtocolError             =   8 ,
00026     EmergencyStop             = 500 ,
00027     UnsupportedCommand        = 501 ,
00028     IncorrectArguments        = 502 ,
00029     ControllerCommFailure     = 503 ,
00030     ArgumentOutOfRange        = 504 ,
00031     ArgumentNotRecognized     = 505 ,
00032     ArgumentNotSupported      = 506 ,
00033     IllegalCommand            = 507 ,
00034     BadContext                = 508 ,
00035     BadArgument               = 509 ,
00036     BadProperty               = 510 ,
00037     ErrorProcessingMethod     = 511 ,
00038     NoDaemonsAreActive        = 512 ,
00039     DaemonDoesNotExist        = 513 ,
00040     UseClearAllErrorsToCont   = 514 ,
00041     DaemonAlreadyExists       = 515 ,
00042     MachineInErrorState       = 1000,
00043     IllegalTouch              = 1001,
00044     AxisDoesNotExist          = 1002,
00045     NoTouch                   = 1003,
00046     NumAnglNotSupOnCurrDev    = 1004,
00047     ErrorDuringHome           = 1005,
00048     SurfaceNotFound           = 1006,
00049     ThetaOutOfRange           = 1007,
00050     TargetPosOutOfMachVol     = 1008,
00051     AirPressureOutOfRange     = 1009,
00052     VectorHasNoNorm           = 1010,
00053     FailedToReseatHead        = 1500,
00054     ProbeNotArmed             = 1501,
00055     ToolNotFound              = 1502,
00056     ToolNotDefined            = 1503,
00057     ToolNotCalibrated         = 2000,
00058     HeadErrorExcessiveForce   = 2001,
00059     TypeProbeDoesNotAllowOper = 2002,
00060     MachineLimitEncountered   = 2500,
00061     AxisNotActive             = 2501,
00062     AxisPositionError         = 2502,
00063     ScaleReadHeadFailure      = 2503,
00064     Collision                 = 2504,
00065     SpecifiedAngleOutOfRange  = 2505,
00066     PartNotAligned            = 2506,
00067   };
00068 //-----------------------------------------------------------------------------
00069 class IPPDME_EXT_CLASS ippErrorNameType
00070 {
00071 public:
00072 
00073 
00074 private:
00075   ippErrorNameType_ _t;
00076 public:
00077   ippErrorNameType(ippErrorNameType_ t){_t=t;}
00078 
00080   const char* toString() const;
00081 
00083   int asInteger()const { return _t;}
00084 
00086   int severity() const;
00087 
00089   operator ippErrorNameType_() const {return _t; }
00090 
00092   static ippErrorNameType from(int value);
00093 };
00094 
00095 
00096 inline ippErrorNameType Convert2ippErrorNameType(double value)
00097 {
00098   return ippErrorNameType((ippErrorNameType_)(int)value);
00099 }
00100 
00101 

Generated on Wed Nov 8 00:19:58 2006 for IPPDME by  doxygen 1.4.1