File: LevelEvaluator_8hh-source.html

package info (click to toggle)
log4cpp-doc 1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,528 kB
  • sloc: makefile: 10
file content (46 lines) | stat: -rw-r--r-- 3,856 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>log4cpp: LevelEvaluator.hh Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
  </ul>
</div>
<h1>LevelEvaluator.hh</h1><a href="LevelEvaluator_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#if !defined(h_3491ecd0_3891_4902_b3ba_15b15d98ae49)</span>
<a name="l00002"></a><a class="code" href="LevelEvaluator_8hh.html#f7571e5583712d432bba9f1b4c14d7d1">00002</a> <span class="preprocessor"></span><span class="preprocessor">#define h_3491ecd0_3891_4902_b3ba_15b15d98ae49</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;<a class="code" href="TriggeringEventEvaluator_8hh.html">log4cpp/TriggeringEventEvaluator.hh</a>&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="keyword">namespace </span>log4cpp
<a name="l00007"></a>00007 {
<a name="l00008"></a><a class="code" href="classlog4cpp_1_1LevelEvaluator.html">00008</a>    <span class="keyword">class </span><a class="code" href="Export_8hh.html#30f9ff9641fa394781f52398a8312437">LOG4CPP_EXPORT</a> LevelEvaluator : <span class="keyword">public</span> <a class="code" href="classlog4cpp_1_1TriggeringEventEvaluator.html">TriggeringEventEvaluator</a>
<a name="l00009"></a>00009    {
<a name="l00010"></a>00010       <span class="keyword">public</span>:
<a name="l00011"></a><a class="code" href="classlog4cpp_1_1LevelEvaluator.html#bbf4c62f6a4123254a1318bbdbb75771">00011</a>          LevelEvaluator(<a class="code" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72" title="The type of Priority Values.">Priority::Value</a> level) : level_(level) {}
<a name="l00012"></a><a class="code" href="classlog4cpp_1_1LevelEvaluator.html#a4f515b2e3abc691c51faa50880e800b">00012</a>          <span class="keyword">virtual</span> <span class="keywordtype">bool</span> eval(<span class="keyword">const</span> <a class="code" href="structlog4cpp_1_1LoggingEvent.html" title="The internal representation of logging events.">LoggingEvent</a>&amp; event)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">event</span>.priority &lt;= level_; }
<a name="l00013"></a>00013    
<a name="l00014"></a>00014       <span class="keyword">private</span>:
<a name="l00015"></a>00015          <a class="code" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72" title="The type of Priority Values.">Priority::Value</a> level_;
<a name="l00016"></a>00016    };
<a name="l00017"></a>00017 }
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#endif // h_3491ecd0_3891_4902_b3ba_15b15d98ae49</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Sep 3 11:54:29 2007 for log4cpp by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>