ICP  1
DAEstatus_codes.h
Go to the documentation of this file.
1 #ifndef DAE_STATUS_CODES
2 #define DAE_STATUS_CODES
3 
4 // severity
5 #define SEV_UNKNOWN 0
6 #define SEV_OK 1
7 #define SEV_WARNING 2
8 #define SEV_INFO 3
9 #define SEV_ERROR 4
10 #define SEV_DEBUG 5
11 #define SEV_FATAL 6
12 
13 // determine directions
14 #define SEV_LE -1
15 #define SEV_EQ 0
16 #define SEV_GE 1
17 #define SEV_ALL 2
18 
19 static const char* sev_names[] = {
20  "<UNKNOWN>",
21  "OK",
22  "WARNING",
23  "INFO",
24  "ERROR",
25  "DEBUG",
26  "FATAL"
27 };
28 
29 // facility
30 #define FAC_NONE 0
31 #define FAC_DAE 1
32 #define FAC_ENVCARD 2
33 #define FAC_DETCARD 3
34 #define FAC_SIMDAE 4
35 #define FAC_NIVISA 5
36 #define FAC_CRPT 6
37 #define FAC_TCB 7
38 
39 static const char* fac_names[] = {
40  "none",
41  "dae",
42  "env card",
43  "det card",
44  "simu dae",
45  "ni visa",
46  "crpt",
47  "tcb"
48 };
49 
50 
51 #define ERRTYPE_NONE 0 /* for information messages etc */
52 #define ERRTYPE_OUTOFMEM 1
53 #define ERRTYPE_NODAE 2 /* unable to fine DAE */
54 #define ERRTYPE_INVCARD 3 /* invalid or missing card */
55 #define ERRTYPE_SPECREAD 4 /* error reading spectrum */
56 #define ERRTYPE_NIVISA 5
57 
58 static const char* errtype_names[] = {
59  "none",
60  "out of memory",
61  "No DAE",
62  "Invalid/missing detector card",
63  "specread",
64  "NIVISA"
65 };
66 
67 #endif /* DAE_STATUS_CODES */
static const char * fac_names[]
static const char * sev_names[]
static const char * errtype_names[]