1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>InspIRCd: command_t Class Reference</title>
4 <link href="inspircd.doxygen.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.4.4-20050815 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</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">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
8 <h1>command_t Class Reference</h1><!-- doxytag: class="command_t" -->A structure that defines a command.
9 <a href="#_details">More...</a>
11 <code>#include <<a class="el" href="ctables_8h-source.html">ctables.h</a>></code>
13 Inheritance diagram for command_t:<p><center><img src="classcommand__t__inherit__graph.gif" border="0" usemap="#command__t__inherit__map" alt="Inheritance graph"></center>
14 <map name="command__t__inherit__map">
15 <area href="classcmd__mode.html" shape="rect" coords="8,82,96,108" alt="">
17 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for command_t:<p><center><img src="classcommand__t__coll__graph.gif" border="0" usemap="#command__t__coll__map" alt="Collaboration graph"></center>
18 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classcommand__t-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
20 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
21 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#command_5Ft_28std_3A_3Astring_20cmd_2C_20char_20flags_2C_20int_20minpara_29">command_t</a> (<a class="el" href="namespaceirc.html#string">std::string</a> cmd, char flags, int minpara)</td></tr>
23 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#Handle_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29_3D_30">Handle</a> (char **parameters, int pcnt, <a class="el" href="classuserrec.html">userrec</a> *user)=0</td></tr>
25 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#_7Ecommand_5Ft_28_29">~command_t</a> ()</td></tr>
27 <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
28 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#command">command</a></td></tr>
30 <tr><td class="mdescLeft"> </td><td class="mdescRight">Command name. <a href="#command"></a><br></td></tr>
31 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#flags_5Fneeded">flags_needed</a></td></tr>
33 <tr><td class="mdescLeft"> </td><td class="mdescRight">User flags needed to execute the command or 0. <a href="#flags_5Fneeded"></a><br></td></tr>
34 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#min_5Fparams">min_params</a></td></tr>
36 <tr><td class="mdescLeft"> </td><td class="mdescRight">Minimum number of parameters command takes. <a href="#min_5Fparams"></a><br></td></tr>
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#use_5Fcount">use_count</a></td></tr>
39 <tr><td class="mdescLeft"> </td><td class="mdescRight">used by /stats m <a href="#use_5Fcount"></a><br></td></tr>
40 <tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#total_5Fbytes">total_bytes</a></td></tr>
42 <tr><td class="mdescLeft"> </td><td class="mdescRight">used by /stats m <a href="#total_5Fbytes"></a><br></td></tr>
43 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcommand__t.html#source">source</a></td></tr>
45 <tr><td class="mdescLeft"> </td><td class="mdescRight">used for resource tracking between modules <a href="#source"></a><br></td></tr>
47 <hr><a name="_details"></a><h2>Detailed Description</h2>
48 A structure that defines a command.
52 Definition at line <a class="el" href="ctables_8h-source.html#l00029">29</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
53 <a class="anchor" name="command_5Ft_28std_3A_3Astring_20cmd_2C_20char_20flags_2C_20int_20minpara_29"></a><!-- doxytag: member="command_t::command_t" ref="command_5Ft_28std_3A_3Astring_20cmd_2C_20char_20flags_2C_20int_20minpara_29" args="(std::string cmd, char flags, int minpara)" --><p>
54 <table class="mdTable" cellpadding="2" cellspacing="0">
57 <table cellpadding="0" cellspacing="0" border="0">
59 <td class="md" nowrap valign="top">command_t::command_t </td>
60 <td class="md" valign="top">( </td>
61 <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> </td>
62 <td class="mdname" nowrap> <em>cmd</em>, </td>
65 <td class="md" nowrap align="right"></td>
67 <td class="md" nowrap>char </td>
68 <td class="mdname" nowrap> <em>flags</em>, </td>
71 <td class="md" nowrap align="right"></td>
73 <td class="md" nowrap>int </td>
74 <td class="mdname" nowrap> <em>minpara</em></td>
78 <td class="md">) </td>
79 <td class="md" colspan="2"><code> [inline]</code></td>
85 <table cellspacing="5" cellpadding="0" border="0">
95 Definition at line <a class="el" href="ctables_8h-source.html#l00051">51</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>.
97 References <a class="el" href="ctables_8h-source.html#l00049">source</a>, <a class="el" href="ctables_8h-source.html#l00046">total_bytes</a>, and <a class="el" href="ctables_8h-source.html#l00043">use_count</a>.<div class="fragment"><pre class="fragment"><a name="l00051"></a>00051 : <a class="code" href="classcommand__t.html#command">command</a>(cmd), <a class="code" href="classcommand__t.html#flags_5Fneeded">flags_needed</a>(flags), <a class="code" href="classcommand__t.html#min_5Fparams">min_params</a>(minpara)
98 <a name="l00052"></a>00052 {
99 <a name="l00053"></a>00053 <a class="code" href="classcommand__t.html#use_5Fcount">use_count</a> = <a class="code" href="classcommand__t.html#total_5Fbytes">total_bytes</a> = 0;
100 <a name="l00054"></a>00054 <a class="code" href="classcommand__t.html#source">source</a> = <span class="stringliteral">"<core>"</span>;
101 <a name="l00055"></a>00055 }
107 <a class="anchor" name="_7Ecommand_5Ft_28_29"></a><!-- doxytag: member="command_t::~command_t" ref="_7Ecommand_5Ft_28_29" args="()" --><p>
108 <table class="mdTable" cellpadding="2" cellspacing="0">
111 <table cellpadding="0" cellspacing="0" border="0">
113 <td class="md" nowrap valign="top">virtual command_t::~command_t </td>
114 <td class="md" valign="top">( </td>
115 <td class="mdname1" valign="top" nowrap> </td>
116 <td class="md" valign="top"> ) </td>
117 <td class="md" nowrap><code> [inline, virtual]</code></td>
123 <table cellspacing="5" cellpadding="0" border="0">
133 Definition at line <a class="el" href="ctables_8h-source.html#l00059">59</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>.<div class="fragment"><pre class="fragment"><a name="l00059"></a>00059 {}
139 <hr><h2>Member Function Documentation</h2>
140 <a class="anchor" name="Handle_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29_3D_30"></a><!-- doxytag: member="command_t::Handle" ref="Handle_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29_3D_30" args="(char **parameters, int pcnt, userrec *user)=0" --><p>
141 <table class="mdTable" cellpadding="2" cellspacing="0">
144 <table cellpadding="0" cellspacing="0" border="0">
146 <td class="md" nowrap valign="top">virtual void command_t::Handle </td>
147 <td class="md" valign="top">( </td>
148 <td class="md" nowrap valign="top">char ** </td>
149 <td class="mdname" nowrap> <em>parameters</em>, </td>
152 <td class="md" nowrap align="right"></td>
154 <td class="md" nowrap>int </td>
155 <td class="mdname" nowrap> <em>pcnt</em>, </td>
158 <td class="md" nowrap align="right"></td>
160 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
161 <td class="mdname" nowrap> <em>user</em></td>
165 <td class="md">) </td>
166 <td class="md" colspan="2"><code> [pure virtual]</code></td>
172 <table cellspacing="5" cellpadding="0" border="0">
182 Implemented in <a class="el" href="classcmd__mode.html#Handle_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">cmd_mode</a>. </td>
185 <hr><h2>Member Data Documentation</h2>
186 <a class="anchor" name="command"></a><!-- doxytag: member="command_t::command" ref="command" args="" --><p>
187 <table class="mdTable" cellpadding="2" cellspacing="0">
190 <table cellpadding="0" cellspacing="0" border="0">
192 <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> <a class="el" href="classcommand__t.html#command">command_t::command</a> </td>
198 <table cellspacing="5" cellpadding="0" border="0">
210 Definition at line <a class="el" href="ctables_8h-source.html#l00034">34</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>. </td>
213 <a class="anchor" name="flags_5Fneeded"></a><!-- doxytag: member="command_t::flags_needed" ref="flags_5Fneeded" args="" --><p>
214 <table class="mdTable" cellpadding="2" cellspacing="0">
217 <table cellpadding="0" cellspacing="0" border="0">
219 <td class="md" nowrap valign="top">char <a class="el" href="classcommand__t.html#flags_5Fneeded">command_t::flags_needed</a> </td>
225 <table cellspacing="5" cellpadding="0" border="0">
233 User flags needed to execute the command or 0.
237 Definition at line <a class="el" href="ctables_8h-source.html#l00037">37</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>. </td>
240 <a class="anchor" name="min_5Fparams"></a><!-- doxytag: member="command_t::min_params" ref="min_5Fparams" args="" --><p>
241 <table class="mdTable" cellpadding="2" cellspacing="0">
244 <table cellpadding="0" cellspacing="0" border="0">
246 <td class="md" nowrap valign="top">int <a class="el" href="classcommand__t.html#min_5Fparams">command_t::min_params</a> </td>
252 <table cellspacing="5" cellpadding="0" border="0">
260 Minimum number of parameters command takes.
264 Definition at line <a class="el" href="ctables_8h-source.html#l00040">40</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>. </td>
267 <a class="anchor" name="source"></a><!-- doxytag: member="command_t::source" ref="source" args="" --><p>
268 <table class="mdTable" cellpadding="2" cellspacing="0">
271 <table cellpadding="0" cellspacing="0" border="0">
273 <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> <a class="el" href="classcommand__t.html#source">command_t::source</a> </td>
279 <table cellspacing="5" cellpadding="0" border="0">
287 used for resource tracking between modules
291 Definition at line <a class="el" href="ctables_8h-source.html#l00049">49</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>.
293 Referenced by <a class="el" href="ctables_8h-source.html#l00051">command_t()</a>. </td>
296 <a class="anchor" name="total_5Fbytes"></a><!-- doxytag: member="command_t::total_bytes" ref="total_5Fbytes" args="" --><p>
297 <table class="mdTable" cellpadding="2" cellspacing="0">
300 <table cellpadding="0" cellspacing="0" border="0">
302 <td class="md" nowrap valign="top">long <a class="el" href="classcommand__t.html#total_5Fbytes">command_t::total_bytes</a> </td>
308 <table cellspacing="5" cellpadding="0" border="0">
320 Definition at line <a class="el" href="ctables_8h-source.html#l00046">46</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>.
322 Referenced by <a class="el" href="ctables_8h-source.html#l00051">command_t()</a>. </td>
325 <a class="anchor" name="use_5Fcount"></a><!-- doxytag: member="command_t::use_count" ref="use_5Fcount" args="" --><p>
326 <table class="mdTable" cellpadding="2" cellspacing="0">
329 <table cellpadding="0" cellspacing="0" border="0">
331 <td class="md" nowrap valign="top">long <a class="el" href="classcommand__t.html#use_5Fcount">command_t::use_count</a> </td>
337 <table cellspacing="5" cellpadding="0" border="0">
349 Definition at line <a class="el" href="ctables_8h-source.html#l00043">43</a> of file <a class="el" href="ctables_8h-source.html">ctables.h</a>.
351 Referenced by <a class="el" href="ctables_8h-source.html#l00051">command_t()</a>. </td>
354 <hr>The documentation for this class was generated from the following file:<ul>
355 <li><a class="el" href="ctables_8h-source.html">ctables.h</a></ul>
356 <hr size="1"><address style="align: right;"><small>Generated on Mon Dec 19 18:02:15 2005 for InspIRCd by
357 <a href="http://www.doxygen.org/index.html">
358 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address>