summaryrefslogtreecommitdiff
path: root/docs/module-doc/base_8h-source.html
blob: 3de7c40798afd61cbf266aabf39f31ff631a516c (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
<!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>base.h Source File</title>
<link href="inspircd.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc3 -->
<center>
<a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>base.h</h1><a href="base_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment">Defines the base classes used by InspIRCd</span>
00003 <span class="comment">*/</span>
00004 
00005 <span class="preprocessor">#ifndef __BASE_H__ </span>
00006 <span class="preprocessor"></span><span class="preprocessor">#define __BASE_H__ </span>
00007 <span class="preprocessor"></span>
00008 <span class="preprocessor">#include "inspircd_config.h"</span> 
00009 <span class="preprocessor">#include &lt;time.h&gt;</span>
00010 <span class="preprocessor">#include &lt;map&gt;</span>
00011 <span class="preprocessor">#include &lt;string&gt;</span>
00012 
<a name="l00013"></a><a class="code" href="base_8h.html#a0">00013</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span>* <a class="code" href="base_8h.html#a0">VoidPointer</a>;
00014  
<a name="l00017"></a><a class="code" href="classclassbase.html">00017</a> <span class="keyword">class </span><a class="code" href="classclassbase.html">classbase</a>
00018 {
00019  <span class="keyword">public</span>:
<a name="l00022"></a><a class="code" href="classclassbase.html#m0">00022</a>         time_t <a class="code" href="classclassbase.html#m0">age</a>;
00023 
<a name="l00027"></a><a class="code" href="classclassbase.html#a0">00027</a>         <a class="code" href="classclassbase.html#a0">classbase</a>() { age = time(NULL); }
<a name="l00028"></a><a class="code" href="classclassbase.html#a1">00028</a>         <a class="code" href="classclassbase.html#a1">~classbase</a>() { }
00029 };
00030 
<a name="l00038"></a><a class="code" href="classExtensible.html">00038</a> <span class="keyword">class </span><a class="code" href="classExtensible.html">Extensible</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a>
00039 {
<a name="l00042"></a><a class="code" href="classExtensible.html#o0">00042</a>         std::map&lt;std::string,char*&gt; <a class="code" href="classExtensible.html#o0">Extension_Items</a>;
00043         
00044 <span class="keyword">public</span>:
00045 
00052         <span class="keywordtype">bool</span> <a class="code" href="classExtensible.html#a0">Extend</a>(std::string key, <span class="keywordtype">char</span>* p);
00053 
00059         <span class="keywordtype">bool</span> <a class="code" href="classExtensible.html#a1">Shrink</a>(std::string key);
00060         
00065         <span class="keywordtype">char</span>* <a class="code" href="classExtensible.html#a2">GetExt</a>(std::string key);
00066 };
00067 
00068 <span class="preprocessor">#endif</span>
00069 <span class="preprocessor"></span>
</pre></div><hr><address style="align: right;"><small>Generated on Sun May 2 00:09:18 2004 for InspIRCd by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.3-rc3 </small></address>
</body>
</html>