1 /*-----------------------------------------------------------------------------
2 Name: PriorityEnum.h
3 Project: xmlBlaster.org
4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
5 Comment: Allows you be called back after a given delay.
6 -----------------------------------------------------------------------------*/
7
8 #ifndef _UTIL_PRIORITYENUM_H
9 #define _UTIL_PRIORITYENUM_H
10
11 #include <string>
12 #include <util/xmlBlasterDef.h>
13
14 namespace org { namespace xmlBlaster { namespace util {
15
16 enum Priority {
17
18 /**
19 * The minimum priority of a message (0).
20 */
21 MIN_PRIORITY,
22
23 /**
24 * The minimum priority of a message (1).
25 */
26 MIN1_PRIORITY,
27
28 /**
29 * The minimum priority of a message (2).
30 */
31 MIN2_PRIORITY,
32
33 /**
34 * The lower priority of a message (3).
35 */
36 LOW_PRIORITY,
37
38 /**
39 * The lower priority of a message (4).
40 */
41 LOW4_PRIORITY,
42
43 /**
44 * The default priority of a message (5).
45 */
46 NORM_PRIORITY,
47
48 /**
49 * The default priority of a message (6).
50 */
51 NORM6_PRIORITY,
52
53 /**
54 * The higher priority of a message (7).
55 */
56 HIGH_PRIORITY,
57
58 /**
59 * The higher priority of a message (8).
60 */
61 HIGH8_PRIORITY,
62
63 /**
64 * The maximum priority of a message (9).
65 */
66 MAX_PRIORITY
67 };
68
69 typedef enum Priority PriorityEnum;
70
71 Dll_Export PriorityEnum int2Priority(int val);
72
73 Dll_Export PriorityEnum str2Priority(const std::string& val);
74
75 }}} // namespaces
76
77 #endif
syntax highlighted by Code2HTML, v. 0.9.1