📄 fixedcontextcategory_8hh-source.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: FixedContextCategory.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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><div class="nav"><a class="el" href="dir_000001.html">include</a> / <a class="el" href="dir_000002.html">log4cpp</a></div><h1>FixedContextCategory.hh</h1><a href="FixedContextCategory_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"> * FixedContextCategory.hh</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.</span>00005 <span class="comment"> * Copyright 2001, 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_FIXEDCONTEXTCATEGORY_HH</span>00011 <span class="preprocessor"></span><span class="preprocessor">#define _LOG4CPP_FIXEDCONTEXTCATEGORY_HH</span>00012 <span class="preprocessor"></span>00013 <span class="preprocessor">#include <<a class="code" href="Portability_8hh.html">log4cpp/Portability.hh</a>></span>00014 <span class="preprocessor">#include <<a class="code" href="Category_8hh.html">log4cpp/Category.hh</a>></span>00015 00016 <span class="keyword">namespace </span>log4cpp {00017 <a name="l00029"></a><a class="code" href="classlog4cpp_1_1FixedContextCategory.html">00029</a> <span class="keyword">class </span><a class="code" href="Export_8hh.html#a0">LOG4CPP_EXPORT</a> FixedContextCategory : <span class="keyword">public</span> <a class="code" href="classlog4cpp_1_1Category.html">Category</a> {00030 00031 <span class="keyword">public</span>:00032 00040 FixedContextCategory(<span class="keyword">const</span> std::string& name, 00041 <span class="keyword">const</span> std::string& context = <span class="stringliteral">""</span>);00042 00043 00047 <span class="keyword">virtual</span> ~FixedContextCategory();00048 00053 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setContext(<span class="keyword">const</span> std::string& context);00054 00059 <span class="keyword">virtual</span> std::string getContext() <span class="keyword">const</span>;00060 00065 <span class="keyword">virtual</span> <a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> getPriority() <span class="keyword">const</span> <span class="keywordflow">throw</span>();00066 00075 <span class="keyword">virtual</span> <a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> getChainedPriority() <span class="keyword">const</span> <span class="keywordflow">throw</span>();00076 00080 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addAppender(<a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>* appender) <span class="keywordflow">throw</span>();00081 00085 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addAppender(<a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>& appender);00086 00092 <span class="keyword">virtual</span> <a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>* getAppender() <span class="keyword">const</span>;00093 00100 <span class="keyword">virtual</span> <a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>* getAppender(<span class="keyword">const</span> std::string& name) <span class="keyword">const</span>;00101 00107 <span class="keyword">virtual</span> <a class="code" href="namespacelog4cpp.html#a1">AppenderSet</a> getAllAppenders() <span class="keyword">const</span>;00108 00113 <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAllAppenders();00114 00119 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> ownsAppender() <span class="keyword">const</span> <span class="keywordflow">throw</span>();00120 00125 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> ownsAppender(<a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>* appender)00126 <span class="keyword">const</span> <span class="keywordflow">throw</span>();00127 00139 <span class="keyword">virtual</span> <span class="keywordtype">void</span> callAppenders(<span class="keyword">const</span> <a class="code" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a>& event) <span class="keywordflow">throw</span>();00140 00144 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setAdditivity(<span class="keywordtype">bool</span> additivity);00145 00149 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getAdditivity() <span class="keyword">const</span> <span class="keywordflow">throw</span>();00150 00151 <span class="keyword">protected</span>:00152 00158 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _logUnconditionally2(<a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> priority, 00159 <span class="keyword">const</span> std::string& message) <span class="keywordflow">throw</span>();00160 00161 <span class="keyword">private</span>:00162 00166 <a class="code" href="classlog4cpp_1_1Category.html">Category</a>& _delegate;00167 00169 std::string _context;00170 00171 };00172 00173 }00174 <span class="preprocessor">#endif // _LOG4CPP_FIXEDCONTEXTCATEGORY_HH</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:07:33 2005 for log4cpp by <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 + -