Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Priority.hh

Go to the documentation of this file.
00001 /*
00002  * Priority.hh
00003  *
00004  * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
00005  * Copyright 2000, Bastiaan Bakker. All rights reserved.
00006  *
00007  * See the COPYING file for the terms of usage and distribution.
00008  */
00009 
00010 #ifndef _LOG4CPP_PRIORITY_HH
00011 #define _LOG4CPP_PRIORITY_HH
00012 
00013 #include <string>
00014 
00015 /*
00016  * Optionally work around rudeness in windows.h on Win32.
00017  */
00018 #ifdef ERROR
00019 #ifdef LOG4CPP_FIX_ERROR_COLLISION
00020 
00021 namespace log4cpp {
00022     static const int _tmpERRORValue = ERROR;
00023 }
00024 
00025 #undef ERROR
00026     static const int ERROR = log4cpp::_tmpERRORValue;
00027 #define ERROR ERROR
00028 
00029 #else
00030 #error Naming collision for 'ERROR' detected. Please read the FAQ for a \
00031        workaround. 
00032 #endif // LOG4CPP_FIX_ERROR_COLLISION 
00033 
00034 #endif // ERROR
00035 
00036 namespace log4cpp {
00037 
00042     class Priority {
00043         public:
00044 
00049         typedef enum {EMERG  = 0, 
00050                       FATAL  = 0,
00051                       ALERT  = 100,
00052                       CRIT   = 200,
00053                       ERROR  = 300, 
00054                       WARN   = 400,
00055                       NOTICE = 500,
00056                       INFO   = 600,
00057                       DEBUG  = 700,
00058                       NOTSET = 800
00059         } PriorityLevel;
00060 
00064         typedef int Value;
00065 
00074         static const std::string& getPriorityName(int priority) throw();
00075     };
00076 }
00077 
00078 #endif // _LOG4CPP_PRIORITY_HH

Generated at Mon Jun 11 01:25:09 2001 for log4cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001