]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/module-doc/ctables_8h-source.html
Modified documentation for base classes
[user/henk/code/inspircd.git] / docs / module-doc / ctables_8h-source.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>ctables.h Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.3-rc2 -->
7 <center>
8 <a class="qindex" href="main.html">Main Page</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>
9 <hr><h1>ctables.h</h1><a href="ctables_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*       +------------------------------------+</span>
10 00002 <span class="comment"> *       | Inspire Internet Relay Chat Daemon |</span>
11 00003 <span class="comment"> *       +------------------------------------+</span>
12 00004 <span class="comment"> *</span>
13 00005 <span class="comment"> *  Inspire is copyright (C) 2002-2003 ChatSpike-Dev.</span>
14 00006 <span class="comment"> *                       E-mail:</span>
15 00007 <span class="comment"> *                &lt;brain@chatspike.net&gt;</span>
16 00008 <span class="comment"> *                &lt;Craig@chatspike.net&gt;</span>
17 00009 <span class="comment"> *     </span>
18 00010 <span class="comment"> * Written by Craig Edwards, Craig McLure, and others.</span>
19 00011 <span class="comment"> * This program is free but copyrighted software; see</span>
20 00012 <span class="comment"> *            the file COPYING for details.</span>
21 00013 <span class="comment"> *</span>
22 00014 <span class="comment"> * ---------------------------------------------------</span>
23 00015 <span class="comment"> </span>
24 00016 <span class="comment"> $Log$
25 00016 <span class="comment"> Revision 1.1  2003/01/26 23:52:48  brain
26 00016 <span class="comment"> Modified documentation for base classes
27 00016 <span class="comment"></span>
28 00017 <span class="comment"> Revision 1.1.1.1  2003/01/23 19:45:58  brain</span>
29 00018 <span class="comment"> InspIRCd second source tree</span>
30 00019 <span class="comment"></span>
31 00020 <span class="comment"> Revision 1.3  2003/01/15 22:47:44  brain</span>
32 00021 <span class="comment"> Changed user and channel structs to classes (finally)</span>
33 00022 <span class="comment"></span>
34 00023 <span class="comment"> Revision 1.2  2003/01/09 21:09:50  brain</span>
35 00024 <span class="comment"> added '/stats M' command</span>
36 00025 <span class="comment"></span>
37 00026 <span class="comment"> Revision 1.1  2003/01/07 01:02:14  brain</span>
38 00027 <span class="comment"></span>
39 00028 <span class="comment"> definitions for command table types</span>
40 00029 <span class="comment"></span>
41 00030 <span class="comment"></span>
42 00031 <span class="comment"> * ---------------------------------------------------</span>
43 00032 <span class="comment"> */</span>
44 00033 <span class="preprocessor">#include "inspircd_config.h"</span>
45 00034 <span class="preprocessor">#include "inspircd.h"</span>
46 00035 <span class="preprocessor">#include "<a class="code" href="base_8h.html">base.h</a>"</span>
47 00036 
48 00037 <span class="preprocessor">#ifndef __CTABLES_H__</span>
49 00038 <span class="preprocessor"></span><span class="preprocessor">#define __CTABLES_H__</span>
50 00039 <span class="preprocessor"></span>
51 <a name="l00040"></a><a class="code" href="ctables_8h.html#a0">00040</a> <span class="keyword">typedef</span> void (handlerfunc) (<span class="keywordtype">char</span>**, <span class="keywordtype">int</span>, <a class="code" href="classuserrec.html">userrec</a>*);
52 00041 
53 00042 <span class="comment">/* a structure that defines a command */</span>
54 00043 
55 <a name="l00044"></a><a class="code" href="classcommand__t.html">00044</a> <span class="keyword">class </span><a class="code" href="classcommand__t.html">command_t</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a>
56 00045 {
57 00046  <span class="keyword">public</span>:
58 <a name="l00047"></a><a class="code" href="classcommand__t.html#m0">00047</a>         <span class="keywordtype">char</span> <a class="code" href="classcommand__t.html#m0">command</a>[MAXBUF]; <span class="comment">/* command name */</span>
59 <a name="l00048"></a><a class="code" href="classcommand__t.html#m1">00048</a>         <a class="code" href="ctables_8h.html#a0">handlerfunc</a> *<a class="code" href="classcommand__t.html#m1">handler_function</a>; <span class="comment">/* handler function as in typedef */</span>
60 <a name="l00049"></a><a class="code" href="classcommand__t.html#m2">00049</a>         <span class="keywordtype">char</span> <a class="code" href="classcommand__t.html#m2">flags_needed</a>; <span class="comment">/* user flags needed to execute the command or 0 */</span>
61 <a name="l00050"></a><a class="code" href="classcommand__t.html#m3">00050</a>         <span class="keywordtype">int</span> <a class="code" href="classcommand__t.html#m3">min_params</a>; <span class="comment">/* minimum number of parameters command takes */</span>
62 <a name="l00051"></a><a class="code" href="classcommand__t.html#m4">00051</a>         <span class="keywordtype">long</span> <a class="code" href="classcommand__t.html#m4">use_count</a>; <span class="comment">/* used by /stats m */</span>
63 <a name="l00052"></a><a class="code" href="classcommand__t.html#m5">00052</a>         <span class="keywordtype">long</span> <a class="code" href="classcommand__t.html#m5">total_bytes</a>; <span class="comment">/* used by /stats m */</span>
64 00053 };
65 00054 
66 00055 <span class="preprocessor">#endif</span>
67 00056 <span class="preprocessor"></span>
68 </pre></div><hr><address style="align: right;"><small>Generated on Sun Jan 26 23:45:47 2003 for InspIRCd by
69 <a href="http://www.doxygen.org/index.html">
70 <img src="doxygen.png" alt="doxygen" align="middle" border=0 
71 width=110 height=53></a>1.3-rc2 </small></address>
72 </body>
73 </html>