blob: 05b43a0806b410565873f25042e385877c0fe529 (
plain)
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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SymbolFingp.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.9.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>SymbolFingp.hpp</h1><div class="fragment"><pre>00001 <font class="comment">/*</font>
00002 <font class="comment"> * SymbolFingp.hpp:</font>
00003 <font class="comment"> * some fingerprint</font>
00004 <font class="comment"> * written by palmers / teso</font>
00005 <font class="comment"> */</font>
00006 <font class="preprocessor">#ifndef __SymbolFingp_H</font>
00007 <font class="preprocessor"></font><font class="preprocessor">#define __SymbolFingp_H</font>
00008 <font class="preprocessor"></font><font class="preprocessor">#include <map></font>
00009 <font class="preprocessor">#include <fstream></font>
00010 <font class="preprocessor">#include <string></font>
00011 <font class="preprocessor">#include <iostream></font>
00012
00013 <font class="comment">/* default file to open */</font>
00014 <font class="preprocessor">#define DEFAULT_FILE "SymbolFind.conf"</font>
00015 <font class="preprocessor"></font>
00016 <font class="comment">/* defines used for the type field in struct cell */</font>
00017 <font class="preprocessor">#define WWCARD 1</font>
00018 <font class="preprocessor"></font><font class="preprocessor">#define NOCARD 0</font>
00019 <font class="preprocessor"></font>
00020
00021 <font class="keyword">struct </font>cell
00022 {
00023 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> type;
00024 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> val;
00025 };
00026
00027
00028 <font class="keyword">struct </font>sfp
00029 {
00030 <font class="keywordtype">char</font> *name;
00031 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> start_addr;
00032 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> stop_addr;
00033 <font class="keywordtype">long</font> offset;
00034 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> length;
00035 <font class="keyword">struct </font>cell *fp;
00036 };
00037
00038
<a name="l00042"></a><a class="code" href="classSymbolFingp.html">00042</a> <font class="keyword">class </font><a class="code" href="classSymbolFingp.html">SymbolFingp</a>
00043 {
00044 <font class="keyword">private</font>:
00045
00046 <font class="keyword">typedef</font> map<string, struct sfp> FingerThing;
00047 FingerThing Fingers;
00048
00049 <font class="keywordtype">void</font> readFingers (ifstream);
00050 <font class="keywordtype">bool</font> addFinger (<font class="keyword">struct</font> sfp *);
00051
00052 <font class="keyword">public</font>:
00053
00057 <a class="code" href="classSymbolFingp.html#a0">SymbolFingp</a> ();
00058
00062 <a class="code" href="classSymbolFingp.html#a0">SymbolFingp</a> (string);
00063
00067 <a class="code" href="classSymbolFingp.html#a2">~SymbolFingp</a> ();
00068
00072 <font class="keyword">struct </font>sfp *getFinger (string);
00073 };
00074
00075 <font class="preprocessor">#endif </font><font class="comment">/* __SymbolFingp_H */</font>
</pre></div><hr><address><small>Generated at Tue Aug 14 18:04:51 2001 for Kermit by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.9.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
© 1997-2001</small></address>
</body>
</html>
|