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>modules.cpp File Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3-rc3 -->
8 <a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</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> <a class="qindex" href="globals.html">File Members</a> </center>
9 <hr><h1>modules.cpp File Reference</h1><code>#include <typeinfo></code><br>
10 <code>#include <iostream></code><br>
11 <code>#include "globals.h"</code><br>
12 <code>#include "<a class="el" href="modules_8h-source.html">modules.h</a>"</code><br>
13 <code>#include "<a class="el" href="ctables_8h-source.html">ctables.h</a>"</code><br>
14 <code>#include "inspircd_io.h"</code><br>
17 Include dependency graph for modules.cpp:<p><center><img src="modules_8cpp__incl.gif" border="0" usemap="#modules.cpp_map" alt="Include dependency graph"></center>
18 <map name="modules.cpp_map">
19 <area href="modules_8h.html" shape="rect" coords="255,224,321,245" alt="">
20 <area href="base_8h.html" shape="rect" coords="257,85,305,107" alt="">
21 <area href="ctables_8h.html" shape="rect" coords="368,155,429,176" alt="">
25 <a href="modules_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
27 <tr><td colspan=2><br><h2>Compounds</h2></td></tr>
28 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classExtMode.html">ExtMode</a></td></tr>
29 <tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
30 <tr><td nowrap align=right valign=top>typedef std::vector< <a class="el" href="classExtMode.html">ExtMode</a> > </td><td valign=bottom><a class="el" href="modules_8cpp.html#a0">ExtModeList</a></td></tr>
31 <tr><td nowrap align=right valign=top>typedef ExtModeList::iterator </td><td valign=bottom><a class="el" href="modules_8cpp.html#a1">ExtModeListIter</a></td></tr>
32 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
33 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="modules_8cpp.html#a4">ModeDefined</a> (char modechar, int type)</td></tr>
34 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="modules_8cpp.html#a5">ModeDefinedOn</a> (char modechar, int type)</td></tr>
35 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="modules_8cpp.html#a6">ModeDefinedOff</a> (char modechar, int type)</td></tr>
36 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="modules_8cpp.html#a7">AddExtendedMode</a> (char modechar, int type, bool default_on, int params_on, int params_off)</td></tr>
37 <tr><td nowrap align=right valign=top>std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td valign=bottom><a class="el" href="modules_8cpp.html#a8">modules</a> (255)</td></tr>
38 <tr><td nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a11">ircd_module</a> * > </td><td valign=bottom><a class="el" href="modules_8cpp.html#a9">factory</a> (255)</td></tr>
39 <tr><td colspan=2><br><h2>Variables</h2></td></tr>
40 <tr><td nowrap align=right valign=top><a class="el" href="modules_8cpp.html#a0">ExtModeList</a> </td><td valign=bottom><a class="el" href="modules_8cpp.html#a2">EMode</a></td></tr>
41 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="modules_8cpp.html#a3">MODCOUNT</a> = -1</td></tr>
43 <hr><h2>Typedef Documentation</h2>
44 <a name="a0" doxytag="modules.cpp::ExtModeList"></a><p>
45 <table width="100%" cellpadding="2" cellspacing="0" border="0">
48 <table cellpadding="0" cellspacing="0" border="0">
50 <td class="md" nowrap valign="top"> typedef std::vector<<a class="el" href="classExtMode.html">ExtMode</a>> ExtModeList
55 <table cellspacing=5 cellpadding=0 border=0>
65 Definition at line <a class="el" href="modules_8cpp-source.html#l00028">28</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td>
68 <a name="a1" doxytag="modules.cpp::ExtModeListIter"></a><p>
69 <table width="100%" cellpadding="2" cellspacing="0" border="0">
72 <table cellpadding="0" cellspacing="0" border="0">
74 <td class="md" nowrap valign="top"> typedef ExtModeList::iterator ExtModeListIter
79 <table cellspacing=5 cellpadding=0 border=0>
89 Definition at line <a class="el" href="modules_8cpp-source.html#l00029">29</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
91 Referenced by <a class="el" href="modules_8cpp-source.html#l00034">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00060">ModeDefinedOff()</a>, and <a class="el" href="modules_8cpp-source.html#l00047">ModeDefinedOn()</a>. </td>
94 <hr><h2>Function Documentation</h2>
95 <a name="a7" doxytag="modules.cpp::AddExtendedMode"></a><p>
96 <table width="100%" cellpadding="2" cellspacing="0" border="0">
99 <table cellpadding="0" cellspacing="0" border="0">
101 <td class="md" nowrap valign="top"> bool AddExtendedMode </td>
102 <td class="md" valign="top">( </td>
103 <td class="md" nowrap valign="top">char </td>
104 <td class="mdname" nowrap> <em>modechar</em>, </td>
109 <td class="md" nowrap>int </td>
110 <td class="mdname" nowrap> <em>type</em>, </td>
115 <td class="md" nowrap>bool </td>
116 <td class="mdname" nowrap> <em>default_on</em>, </td>
121 <td class="md" nowrap>int </td>
122 <td class="mdname" nowrap> <em>params_on</em>, </td>
127 <td class="md" nowrap>int </td>
128 <td class="mdname" nowrap> <em>params_off</em></td>
132 <td class="md">) </td>
133 <td class="md" colspan="2"></td>
140 <table cellspacing=5 cellpadding=0 border=0>
150 Definition at line <a class="el" href="modules_8cpp-source.html#l00073">73</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
152 References <a class="el" href="modules_8cpp-source.html#l00031">EMode</a>.
154 <div class="fragment"><pre>00074 {
155 00075 <a class="code" href="modules_8cpp.html#a2">EMode</a>.push_back( <a class="code" href="classExtMode.html">ExtMode</a> (modechar,type,default_on,params_on,params_off));
156 00076 <span class="keywordflow">return</span> <span class="keyword">true</span>;
161 <a name="a9" doxytag="modules.cpp::factory"></a><p>
162 <table width="100%" cellpadding="2" cellspacing="0" border="0">
165 <table cellpadding="0" cellspacing="0" border="0">
167 <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a11">ircd_module</a>*> factory </td>
168 <td class="md" valign="top">( </td>
169 <td class="md" nowrap valign="top">255 </td>
170 <td class="mdname1" valign="top" nowrap> </td>
171 <td class="md" valign="top">) </td>
172 <td class="md" nowrap></td>
179 <table cellspacing=5 cellpadding=0 border=0>
190 <a name="a4" doxytag="modules.cpp::ModeDefined"></a><p>
191 <table width="100%" cellpadding="2" cellspacing="0" border="0">
194 <table cellpadding="0" cellspacing="0" border="0">
196 <td class="md" nowrap valign="top"> bool ModeDefined </td>
197 <td class="md" valign="top">( </td>
198 <td class="md" nowrap valign="top">char </td>
199 <td class="mdname" nowrap> <em>modechar</em>, </td>
204 <td class="md" nowrap>int </td>
205 <td class="mdname" nowrap> <em>type</em></td>
209 <td class="md">) </td>
210 <td class="md" colspan="2"></td>
217 <table cellspacing=5 cellpadding=0 border=0>
227 Definition at line <a class="el" href="modules_8cpp-source.html#l00034">34</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
229 References <a class="el" href="modules_8cpp-source.html#l00031">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00029">ExtModeListIter</a>.
231 <div class="fragment"><pre>00035 {
232 00036 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
234 00038 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type))
236 00040 <span class="keywordflow">return</span> <span class="keyword">true</span>;
239 00043 <span class="keywordflow">return</span> <span class="keyword">false</span>;
244 <a name="a6" doxytag="modules.cpp::ModeDefinedOff"></a><p>
245 <table width="100%" cellpadding="2" cellspacing="0" border="0">
248 <table cellpadding="0" cellspacing="0" border="0">
250 <td class="md" nowrap valign="top"> bool ModeDefinedOff </td>
251 <td class="md" valign="top">( </td>
252 <td class="md" nowrap valign="top">char </td>
253 <td class="mdname" nowrap> <em>modechar</em>, </td>
258 <td class="md" nowrap>int </td>
259 <td class="mdname" nowrap> <em>type</em></td>
263 <td class="md">) </td>
264 <td class="md" colspan="2"></td>
271 <table cellspacing=5 cellpadding=0 border=0>
281 Definition at line <a class="el" href="modules_8cpp-source.html#l00060">60</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
283 References <a class="el" href="modules_8cpp-source.html#l00031">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00029">ExtModeListIter</a>.
285 <div class="fragment"><pre>00061 {
286 00062 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
288 00064 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type))
290 00066 <span class="keywordflow">return</span> i->params_when_off;
293 00069 <span class="keywordflow">return</span> 0;
298 <a name="a5" doxytag="modules.cpp::ModeDefinedOn"></a><p>
299 <table width="100%" cellpadding="2" cellspacing="0" border="0">
302 <table cellpadding="0" cellspacing="0" border="0">
304 <td class="md" nowrap valign="top"> bool ModeDefinedOn </td>
305 <td class="md" valign="top">( </td>
306 <td class="md" nowrap valign="top">char </td>
307 <td class="mdname" nowrap> <em>modechar</em>, </td>
312 <td class="md" nowrap>int </td>
313 <td class="mdname" nowrap> <em>type</em></td>
317 <td class="md">) </td>
318 <td class="md" colspan="2"></td>
325 <table cellspacing=5 cellpadding=0 border=0>
335 Definition at line <a class="el" href="modules_8cpp-source.html#l00047">47</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
337 References <a class="el" href="modules_8cpp-source.html#l00031">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00029">ExtModeListIter</a>.
339 <div class="fragment"><pre>00048 {
340 00049 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
342 00051 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type))
344 00053 <span class="keywordflow">return</span> i->params_when_on;
347 00056 <span class="keywordflow">return</span> 0;
352 <a name="a8" doxytag="modules.cpp::modules"></a><p>
353 <table width="100%" cellpadding="2" cellspacing="0" border="0">
356 <table cellpadding="0" cellspacing="0" border="0">
358 <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classModule.html">Module</a>*> modules </td>
359 <td class="md" valign="top">( </td>
360 <td class="md" nowrap valign="top">255 </td>
361 <td class="mdname1" valign="top" nowrap> </td>
362 <td class="md" valign="top">) </td>
363 <td class="md" nowrap></td>
370 <table cellspacing=5 cellpadding=0 border=0>
381 <hr><h2>Variable Documentation</h2>
382 <a name="a2" doxytag="modules.cpp::EMode"></a><p>
383 <table width="100%" cellpadding="2" cellspacing="0" border="0">
386 <table cellpadding="0" cellspacing="0" border="0">
388 <td class="md" nowrap valign="top"> <a class="el" href="modules_8cpp.html#a0">ExtModeList</a> EMode
393 <table cellspacing=5 cellpadding=0 border=0>
403 Definition at line <a class="el" href="modules_8cpp-source.html#l00031">31</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
405 Referenced by <a class="el" href="modules_8cpp-source.html#l00073">AddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00034">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00060">ModeDefinedOff()</a>, and <a class="el" href="modules_8cpp-source.html#l00047">ModeDefinedOn()</a>. </td>
408 <a name="a3" doxytag="modules.cpp::MODCOUNT"></a><p>
409 <table width="100%" cellpadding="2" cellspacing="0" border="0">
412 <table cellpadding="0" cellspacing="0" border="0">
414 <td class="md" nowrap valign="top"> int MODCOUNT = -1
419 <table cellspacing=5 cellpadding=0 border=0>
429 Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td>
432 <hr><address style="align: right;"><small>Generated on Fri Apr 2 14:46:08 2004 for InspIRCd by
433 <a href="http://www.doxygen.org/index.html">
434 <img src="doxygen.png" alt="doxygen" align="middle" border=0
435 width=110 height=53></a>1.3-rc3 </small></address>