Priority.hh
Go to the documentation of this file.
1 /*
2  * Priority.hh
3  *
4  * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5  * Copyright 2000, Bastiaan Bakker. All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 #ifndef _LOG4CPP_PRIORITY_HH
11 #define _LOG4CPP_PRIORITY_HH
12 
13 #include "Base/GCException.h"
14 #include <log4cpp/Portability.hh>
15 #include <string>
16 #include <stdexcept>
17 
18 /*
19  * Optionally work around rudeness in windows.h on Win32.
20  */
21 #ifdef ERROR
22 #ifdef LOG4CPP_FIX_ERROR_COLLISION
23 
25 static const int _tmpERRORValue = ERROR;
27 
28 #undef ERROR
29 static const int ERROR = LOG4CPP_NS::_tmpERRORValue;
30 #define ERROR ERROR
31 
32 #else // LOG4CPP_FIX_ERROR_COLLISION
33 #error Naming collision for 'ERROR' detected. Please read the FAQ for a \
34  workaround.
35 #endif // LOG4CPP_FIX_ERROR_COLLISION
36 
37 #endif // ERROR
38 
39 /*
40  * Other Win32 rudeness in EDK.h
41  */
42 #ifdef DEBUG
43 
44 #ifdef LOG4CPP_FIX_ERROR_COLLISION
45 
46 #undef DEBUG
47 #define DEBUG DEBUG
48 
49 #else // LOG4CPP_FIX_ERROR_COLLISION
50 #error Naming collision for 'DEBUG' detected. Please read the FAQ for a \
51  workaround.
52 #endif // LOG4CPP_FIX_ERROR_COLLISION
53 
54 #endif // DEBUG
55 
57 
63 public:
64 
65  static const int MESSAGE_SIZE; // = 8;
66 
71  typedef enum {
72  EMERG = 0,
73  FATAL = 0,
74  ALERT = 100,
75  CRIT = 200,
76  ERROR = 300,
77  WARN = 400,
78  NOTICE = 500,
79  INFO = 600,
80  DEBUG = 700,
81  NOTSET = 800
82  } PriorityLevel;
83 
87  typedef int Value;
88 
97  static const std::string& getPriorityName(int priority) throw();
98 
108  static Value getPriorityValue(const std::string& priorityName);
109  // throw(GenICam::InvalidArgumentException);
110 };
112 
113 #endif // _LOG4CPP_PRIORITY_HH
#define LOG4CPP_NS_END
Definition: Portability.hh:50
PriorityLevel
Predefined Levels of Priorities.
Definition: Priority.hh:71
The Priority class provides importance levels with which one can categorize log messages.
Definition: Priority.hh:62
#define LOG4CPP_EXPORT
Definition: Export.hh:21
static const int MESSAGE_SIZE
Definition: Priority.hh:65
int Value
The type of Priority Values.
Definition: Priority.hh:87
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54