EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
formatError.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file formatError.h
1 /*
2 ** formatError.h
3 **
4 ** Author: $Author: purschke $
5 ** Date: $Date: 2000/07/21 01:51:13 $
6 **
7 ** $Log: formatError.h,v $
8 ** Revision 1.1.1.1 2000/07/21 01:51:13 purschke
9 ** mlp -- adding the new automakified "basic" module to CVS.
10 **
11 **
12 ** Revision 1.5 1998/12/17 21:57:06 phoncs
13 ** (stephen markacs) better bounds checking in version gets
14 **
15 ** Revision 1.4 1998/12/11 22:01:18 markacs
16 ** (stephen markacs) adding log into cvs tags
17 **
18 */
19 /*
20 ** formatError.h
21 **
22 ** Definitions of various error-handling macros, prototypes, variables etc
23 */
24 
25 #ifndef _FORMATERROR_
26 #define _FORMATERROR_
27 
28 #include "phenixOnline.h"
29 
30 /*
31 ** Use C linkage for error routines
32 */
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 typedef UINT ERRORVALUE;
38 
39 #define FORMAT_ERROR_SUBTYPE_FRAME 1
40 #define FORMAT_ERROR_SUBTYPE_PACKET 2
41 #define FORMAT_ERROR_SUBTYPE_USER 3
42 
46 
47 /*
48 ** Some function prototypes
49 */
50 void setFrameError(ERRORVALUE, PHDWORD*, PHDWORD);
51 
52 void setPacketError(ERRORVALUE, PHDWORD*, PHDWORD);
53 
54 void setUserError(ERRORVALUE, PHDWORD);
55 
56 void setFrameSuccess ();
57 
58 void setPacketSuccess ();
59 
60 ERRORVALUE formatGetError (UINT*, PHDWORD**, PHDWORD*);
61 
62 ERRORVALUE formatGetErrorNumber ( );
63 
65 
67 
68 /*
69 ** Error code definitions
70 */
89 };
90 
91 /*
92 ** Use C linkage for below structures
93 */
94 #ifdef __cplusplus
95 }
96 #endif
97 
98 #endif
99 
100 
101 
102 
103