]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/module-doc/modules_8cpp.html
Updated documentation to document Server::SendMode
[user/henk/code/inspircd.git] / docs / module-doc / modules_8cpp.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>modules.cpp File Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.3-rc3 -->
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>modules.cpp File Reference</h1><code>#include &lt;typeinfo&gt;</code><br>
10 <code>#include &lt;iostream&gt;</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>
15
16 <p>
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="">
22 </map>
23
24 <p>
25 <a href="modules_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
26 <tr><td></td></tr>
27 <tr><td colspan=2><br><h2>Compounds</h2></td></tr>
28 <tr><td nowrap align=right valign=top>class &nbsp;</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&lt; <a class="el" href="classExtMode.html">ExtMode</a> &gt;&nbsp;</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&nbsp;</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&nbsp;</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&nbsp;</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&nbsp;</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&nbsp;</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&lt; <a class="el" href="classModule.html">Module</a> * &gt;&nbsp;</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&lt; <a class="el" href="modules_8h.html#a11">ircd_module</a> * &gt;&nbsp;</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>&nbsp;</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&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a3">MODCOUNT</a> = -1</td></tr>
42 </table>
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">
46   <tr>
47     <td class="md">
48       <table cellpadding="0" cellspacing="0" border="0">
49         <tr>
50           <td class="md" nowrap valign="top"> typedef std::vector&lt;<a class="el" href="classExtMode.html">ExtMode</a>&gt; ExtModeList
51       </table>
52     </td>
53   </tr>
54 </table>
55 <table cellspacing=5 cellpadding=0 border=0>
56   <tr>
57     <td>
58       &nbsp;
59     </td>
60     <td>
61
62 <p>
63
64 <p>
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>
66   </tr>
67 </table>
68 <a name="a1" doxytag="modules.cpp::ExtModeListIter"></a><p>
69 <table width="100%" cellpadding="2" cellspacing="0" border="0">
70   <tr>
71     <td class="md">
72       <table cellpadding="0" cellspacing="0" border="0">
73         <tr>
74           <td class="md" nowrap valign="top"> typedef ExtModeList::iterator ExtModeListIter
75       </table>
76     </td>
77   </tr>
78 </table>
79 <table cellspacing=5 cellpadding=0 border=0>
80   <tr>
81     <td>
82       &nbsp;
83     </td>
84     <td>
85
86 <p>
87
88 <p>
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>.
90 <p>
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>
92   </tr>
93 </table>
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">
97   <tr>
98     <td class="md">
99       <table cellpadding="0" cellspacing="0" border="0">
100         <tr>
101           <td class="md" nowrap valign="top"> bool AddExtendedMode </td>
102           <td class="md" valign="top">(&nbsp;</td>
103           <td class="md" nowrap valign="top">char&nbsp;</td>
104           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
105         </tr>
106         <tr>
107           <td></td>
108           <td></td>
109           <td class="md" nowrap>int&nbsp;</td>
110           <td class="mdname" nowrap>&nbsp; <em>type</em>, </td>
111         </tr>
112         <tr>
113           <td></td>
114           <td></td>
115           <td class="md" nowrap>bool&nbsp;</td>
116           <td class="mdname" nowrap>&nbsp; <em>default_on</em>, </td>
117         </tr>
118         <tr>
119           <td></td>
120           <td></td>
121           <td class="md" nowrap>int&nbsp;</td>
122           <td class="mdname" nowrap>&nbsp; <em>params_on</em>, </td>
123         </tr>
124         <tr>
125           <td></td>
126           <td></td>
127           <td class="md" nowrap>int&nbsp;</td>
128           <td class="mdname" nowrap>&nbsp; <em>params_off</em></td>
129         </tr>
130         <tr>
131           <td></td>
132           <td class="md">)&nbsp;</td>
133           <td class="md" colspan="2"></td>
134         </tr>
135
136       </table>
137     </td>
138   </tr>
139 </table>
140 <table cellspacing=5 cellpadding=0 border=0>
141   <tr>
142     <td>
143       &nbsp;
144     </td>
145     <td>
146
147 <p>
148
149 <p>
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>.
151 <p>
152 References <a class="el" href="modules_8cpp-source.html#l00031">EMode</a>.
153 <p>
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>;
157 00077 }
158 </pre></div>    </td>
159   </tr>
160 </table>
161 <a name="a9" doxytag="modules.cpp::factory"></a><p>
162 <table width="100%" cellpadding="2" cellspacing="0" border="0">
163   <tr>
164     <td class="md">
165       <table cellpadding="0" cellspacing="0" border="0">
166         <tr>
167           <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="modules_8h.html#a11">ircd_module</a>*&gt; factory </td>
168           <td class="md" valign="top">(&nbsp;</td>
169           <td class="md" nowrap valign="top">255&nbsp;</td>
170           <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
171           <td class="md" valign="top">)&nbsp;</td>
172           <td class="md" nowrap></td>
173         </tr>
174
175       </table>
176     </td>
177   </tr>
178 </table>
179 <table cellspacing=5 cellpadding=0 border=0>
180   <tr>
181     <td>
182       &nbsp;
183     </td>
184     <td>
185
186 <p>
187     </td>
188   </tr>
189 </table>
190 <a name="a4" doxytag="modules.cpp::ModeDefined"></a><p>
191 <table width="100%" cellpadding="2" cellspacing="0" border="0">
192   <tr>
193     <td class="md">
194       <table cellpadding="0" cellspacing="0" border="0">
195         <tr>
196           <td class="md" nowrap valign="top"> bool ModeDefined </td>
197           <td class="md" valign="top">(&nbsp;</td>
198           <td class="md" nowrap valign="top">char&nbsp;</td>
199           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
200         </tr>
201         <tr>
202           <td></td>
203           <td></td>
204           <td class="md" nowrap>int&nbsp;</td>
205           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
206         </tr>
207         <tr>
208           <td></td>
209           <td class="md">)&nbsp;</td>
210           <td class="md" colspan="2"></td>
211         </tr>
212
213       </table>
214     </td>
215   </tr>
216 </table>
217 <table cellspacing=5 cellpadding=0 border=0>
218   <tr>
219     <td>
220       &nbsp;
221     </td>
222     <td>
223
224 <p>
225
226 <p>
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>.
228 <p>
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>.
230 <p>
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 &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
233 00037         {
234 00038                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type))
235 00039                 {
236 00040                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
237 00041                 }
238 00042         }
239 00043         <span class="keywordflow">return</span> <span class="keyword">false</span>;
240 00044 }
241 </pre></div>    </td>
242   </tr>
243 </table>
244 <a name="a6" doxytag="modules.cpp::ModeDefinedOff"></a><p>
245 <table width="100%" cellpadding="2" cellspacing="0" border="0">
246   <tr>
247     <td class="md">
248       <table cellpadding="0" cellspacing="0" border="0">
249         <tr>
250           <td class="md" nowrap valign="top"> bool ModeDefinedOff </td>
251           <td class="md" valign="top">(&nbsp;</td>
252           <td class="md" nowrap valign="top">char&nbsp;</td>
253           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
254         </tr>
255         <tr>
256           <td></td>
257           <td></td>
258           <td class="md" nowrap>int&nbsp;</td>
259           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
260         </tr>
261         <tr>
262           <td></td>
263           <td class="md">)&nbsp;</td>
264           <td class="md" colspan="2"></td>
265         </tr>
266
267       </table>
268     </td>
269   </tr>
270 </table>
271 <table cellspacing=5 cellpadding=0 border=0>
272   <tr>
273     <td>
274       &nbsp;
275     </td>
276     <td>
277
278 <p>
279
280 <p>
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>.
282 <p>
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>.
284 <p>
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 &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
287 00063         {
288 00064                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type))
289 00065                 {
290 00066                         <span class="keywordflow">return</span> i-&gt;params_when_off;
291 00067                 }
292 00068         }
293 00069         <span class="keywordflow">return</span> 0;
294 00070 }
295 </pre></div>    </td>
296   </tr>
297 </table>
298 <a name="a5" doxytag="modules.cpp::ModeDefinedOn"></a><p>
299 <table width="100%" cellpadding="2" cellspacing="0" border="0">
300   <tr>
301     <td class="md">
302       <table cellpadding="0" cellspacing="0" border="0">
303         <tr>
304           <td class="md" nowrap valign="top"> bool ModeDefinedOn </td>
305           <td class="md" valign="top">(&nbsp;</td>
306           <td class="md" nowrap valign="top">char&nbsp;</td>
307           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
308         </tr>
309         <tr>
310           <td></td>
311           <td></td>
312           <td class="md" nowrap>int&nbsp;</td>
313           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
314         </tr>
315         <tr>
316           <td></td>
317           <td class="md">)&nbsp;</td>
318           <td class="md" colspan="2"></td>
319         </tr>
320
321       </table>
322     </td>
323   </tr>
324 </table>
325 <table cellspacing=5 cellpadding=0 border=0>
326   <tr>
327     <td>
328       &nbsp;
329     </td>
330     <td>
331
332 <p>
333
334 <p>
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>.
336 <p>
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>.
338 <p>
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 &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
341 00050         {
342 00051                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type))
343 00052                 {
344 00053                         <span class="keywordflow">return</span> i-&gt;params_when_on;
345 00054                 }
346 00055         }
347 00056         <span class="keywordflow">return</span> 0;
348 00057 }
349 </pre></div>    </td>
350   </tr>
351 </table>
352 <a name="a8" doxytag="modules.cpp::modules"></a><p>
353 <table width="100%" cellpadding="2" cellspacing="0" border="0">
354   <tr>
355     <td class="md">
356       <table cellpadding="0" cellspacing="0" border="0">
357         <tr>
358           <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="classModule.html">Module</a>*&gt; modules </td>
359           <td class="md" valign="top">(&nbsp;</td>
360           <td class="md" nowrap valign="top">255&nbsp;</td>
361           <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
362           <td class="md" valign="top">)&nbsp;</td>
363           <td class="md" nowrap></td>
364         </tr>
365
366       </table>
367     </td>
368   </tr>
369 </table>
370 <table cellspacing=5 cellpadding=0 border=0>
371   <tr>
372     <td>
373       &nbsp;
374     </td>
375     <td>
376
377 <p>
378     </td>
379   </tr>
380 </table>
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">
384   <tr>
385     <td class="md">
386       <table cellpadding="0" cellspacing="0" border="0">
387         <tr>
388           <td class="md" nowrap valign="top"> <a class="el" href="modules_8cpp.html#a0">ExtModeList</a> EMode
389       </table>
390     </td>
391   </tr>
392 </table>
393 <table cellspacing=5 cellpadding=0 border=0>
394   <tr>
395     <td>
396       &nbsp;
397     </td>
398     <td>
399
400 <p>
401
402 <p>
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>.
404 <p>
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>
406   </tr>
407 </table>
408 <a name="a3" doxytag="modules.cpp::MODCOUNT"></a><p>
409 <table width="100%" cellpadding="2" cellspacing="0" border="0">
410   <tr>
411     <td class="md">
412       <table cellpadding="0" cellspacing="0" border="0">
413         <tr>
414           <td class="md" nowrap valign="top"> int MODCOUNT = -1
415       </table>
416     </td>
417   </tr>
418 </table>
419 <table cellspacing=5 cellpadding=0 border=0>
420   <tr>
421     <td>
422       &nbsp;
423     </td>
424     <td>
425
426 <p>
427
428 <p>
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>
430   </tr>
431 </table>
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>
436 </body>
437 </html>