⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 priority_8hh-source.html

📁 log4cpp 的参考文档, 一个非常好用的C++ log 类库
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>log4cpp: Priority.hh Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><div class="nav"><a class="el" href="dir_000001.html">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">log4cpp</a></div><h1>Priority.hh</h1><a href="Priority_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>00002 <span class="comment"> * Priority.hh</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.</span>00005 <span class="comment"> * Copyright 2000, Bastiaan Bakker. All rights reserved.</span>00006 <span class="comment"> *</span>00007 <span class="comment"> * See the COPYING file for the terms of usage and distribution.</span>00008 <span class="comment"> */</span>00009 00010 <span class="preprocessor">#ifndef _LOG4CPP_PRIORITY_HH</span>00011 <span class="preprocessor"></span><span class="preprocessor">#define _LOG4CPP_PRIORITY_HH</span>00012 <span class="preprocessor"></span>00013 <span class="preprocessor">#include &lt;<a class="code" href="Portability_8hh.html">log4cpp/Portability.hh</a>&gt;</span>00014 <span class="preprocessor">#include &lt;string&gt;</span>00015 <span class="preprocessor">#include &lt;stdexcept&gt;</span>00016 00017 <span class="comment">/*</span>00018 <span class="comment"> * Optionally work around rudeness in windows.h on Win32.</span>00019 <span class="comment"> */</span>00020 <span class="preprocessor">#ifdef ERROR</span>00021 <span class="preprocessor"></span><span class="preprocessor">#ifdef LOG4CPP_FIX_ERROR_COLLISION</span>00022 <span class="preprocessor"></span>00023 <span class="keyword">namespace </span>log4cpp {00024     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> _tmpERRORValue = ERROR;00025 }00026 00027 <span class="preprocessor">#undef ERROR</span>00028 <span class="preprocessor"></span>    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> ERROR = log4cpp::_tmpERRORValue;00029 <span class="preprocessor">#define ERROR ERROR</span>00030 <span class="preprocessor"></span>00031 <span class="preprocessor">#else  // LOG4CPP_FIX_ERROR_COLLISION</span>00032 <span class="preprocessor"></span><span class="preprocessor">#error Naming collision for 'ERROR' detected. Please read the FAQ for a \</span>00033 <span class="preprocessor">       workaround. </span>00034 <span class="preprocessor"></span><span class="preprocessor">#endif // LOG4CPP_FIX_ERROR_COLLISION </span>00035 <span class="preprocessor"></span>00036 <span class="preprocessor">#endif // ERROR</span>00037 <span class="preprocessor"></span>00038 <span class="comment">/*</span>00039 <span class="comment"> * Other Win32 rudeness in EDK.h</span>00040 <span class="comment"> */</span>00041 <span class="preprocessor">#ifdef DEBUG</span>00042 <span class="preprocessor"></span>00043 <span class="preprocessor">#ifdef LOG4CPP_FIX_ERROR_COLLISION</span>00044 <span class="preprocessor"></span>00045 <span class="preprocessor">#undef DEBUG</span>00046 <span class="preprocessor"></span><span class="preprocessor">#define DEBUG DEBUG</span>00047 <span class="preprocessor"></span>00048 <span class="preprocessor">#else  // LOG4CPP_FIX_ERROR_COLLISION</span>00049 <span class="preprocessor"></span><span class="preprocessor">#error Naming collision for 'DEBUG' detected. Please read the FAQ for a \</span>00050 <span class="preprocessor">       workaround. </span>00051 <span class="preprocessor"></span><span class="preprocessor">#endif // LOG4CPP_FIX_ERROR_COLLISION </span>00052 <span class="preprocessor"></span>00053 <span class="preprocessor">#endif // DEBUG</span>00054 <span class="preprocessor"></span>00055 00056 <span class="keyword">namespace </span>log4cpp {00057 <a name="l00062"></a><a class="code" href="classlog4cpp_1_1Priority.html">00062</a>     <span class="keyword">class </span><a class="code" href="Export_8hh.html#a0">LOG4CPP_EXPORT</a> Priority {00063         <span class="keyword">public</span>:00064 <a name="l00065"></a><a class="code" href="classlog4cpp_1_1Priority.html#s0">00065</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> MESSAGE_SIZE = 8;00066 <a name="l00071"></a><a class="code" href="classlog4cpp_1_1Priority.html#w11">00071</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> {EMERG  = 0, 00072                       FATAL  = 0,00073                       ALERT  = 100,00074                       CRIT   = 200,00075                       ERROR  = 300, 00076                       WARN   = 400,00077                       NOTICE = 500,00078                       INFO   = 600,00079                       DEBUG  = 700,00080                       NOTSET = 80000081         } PriorityLevel;00082 <a name="l00086"></a><a class="code" href="classlog4cpp_1_1Priority.html#w0">00086</a>         <span class="keyword">typedef</span> <span class="keywordtype">int</span> Value;00087 00096         <span class="keyword">static</span> <span class="keyword">const</span> std::string&amp; getPriorityName(<span class="keywordtype">int</span> priority) <span class="keywordflow">throw</span>();00097         00107         <span class="keyword">static</span> Value getPriorityValue(<span class="keyword">const</span> std::string&amp; priorityName)00108         <span class="keywordflow">throw</span>(std::invalid_argument);00109     };00110 }00111 00112 <span class="preprocessor">#endif // _LOG4CPP_PRIORITY_HH</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:07:33 2005 for log4cpp by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -