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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
<!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>mailfilter: Checker.hh Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<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="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></div>
<h1>Checker.hh</h1><a href="Checker_8hh.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">// Checker.hh - source file for the mailfilter program</span>
00002 <span class="comment">// Copyright (c) 2000 - 2004 Andreas Bauer <baueran@in.tum.de></span>
00003 <span class="comment">//</span>
00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span>
00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span>
00007 <span class="comment">// (at your option) any later version.</span>
00008 <span class="comment">//</span>
00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00012 <span class="comment">// GNU General Public License for more details.</span>
00013 <span class="comment">//</span>
00014 <span class="comment">// You should have received a copy of the GNU General Public License</span>
00015 <span class="comment">// along with this program; if not, write to the Free Software</span>
00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,</span>
00017 <span class="comment">// USA.</span>
00018
00019 <span class="preprocessor">#ifndef CHECKER_HH</span>
00020 <span class="preprocessor"></span><span class="preprocessor">#define CHECKER_HH</span>
00021 <span class="preprocessor"></span>
00022 <span class="preprocessor">#include <vector></span>
00023 <span class="preprocessor">#include <string></span>
00024 <span class="preprocessor">#include "<a class="code" href="Header_8hh.html">Header.hh</a>"</span>
00025 <span class="preprocessor">#include "<a class="code" href="RegExp_8hh.html">RegExp.hh</a>"</span>
00026 <span class="preprocessor">#include "<a class="code" href="Preferences_8hh.html">Preferences.hh</a>"</span>
00027
00028 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
00029 <span class="preprocessor"></span><span class="preprocessor">#include "config.h"</span>
00030 <span class="preprocessor">#endif</span>
00031 <span class="preprocessor"></span>
00032 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
00033
<a name="l00034"></a><a class="code" href="namespacecheck.html">00034</a> <span class="keyword">namespace </span>check {
00035
<a name="l00036"></a><a class="code" href="classcheck_1_1Checker.html">00036</a> <span class="keyword">class </span><a class="code" href="classcheck_1_1Checker.html">Checker</a> {
00037 <span class="keyword">private</span>:
00038 vector<string> matchingStrings;
00039 vector<string> matchingFilters;
00040 <a class="code" href="classpref_1_1Preferences.html">pref::Preferences</a>* prefs;
00041 <a class="code" href="classre_1_1RegExp.html">re::RegExp</a> regExp;
00042
00043 <span class="keyword">public</span>:
00044 <a class="code" href="classcheck_1_1Checker.html#a0">Checker</a>(<a class="code" href="classpref_1_1Preferences.html">pref::Preferences</a>*);
00045 <a class="code" href="classcheck_1_1Checker.html#a1">~Checker</a>();
00046 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a2">duplicates</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*, vector<string>*);
00047 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a3">lineLength</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00048 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a4">friends</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00049 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a5">size</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00050 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a6">filters</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00051 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a7">negFilters</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00052 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a8">scores</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00053 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a9">negScores</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00054 <span class="keywordtype">int</span> <a class="code" href="classcheck_1_1Checker.html#a10">maxSizeScore</a>(<a class="code" href="classmsg_1_1Header.html">msg::Header</a>*);
00055
00056 <span class="keywordtype">void</span> <a class="code" href="classcheck_1_1Checker.html#a11">cleanMatchingStrings</a>(<span class="keywordtype">void</span>);
00057 <span class="keywordtype">void</span> <a class="code" href="classcheck_1_1Checker.html#a12">cleanMatchingFilters</a>(<span class="keywordtype">void</span>);
00058 <span class="keywordtype">void</span> <a class="code" href="classcheck_1_1Checker.html#a13">setMatchingString</a>(<span class="keyword">const</span> string);
00059 vector<string>* <a class="code" href="classcheck_1_1Checker.html#a14">getMatchingStrings</a>(<span class="keywordtype">void</span>);
00060 <span class="keywordtype">void</span> <a class="code" href="classcheck_1_1Checker.html#a15">setMatchingFilter</a>(<span class="keyword">const</span> string);
00061 vector<string>* <a class="code" href="classcheck_1_1Checker.html#a16">getMatchingFilters</a>(<span class="keywordtype">void</span>);
00062 };
00063
00064 }
00065
00066 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Aug 8 15:22:26 2004 for mailfilter by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|