]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/module-doc/classConfigReader.html
Fixed 'fake direction' messages being put out by user->registered = 7 being set too...
[user/henk/code/inspircd.git] / docs / module-doc / classConfigReader.html
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: ConfigReader Class Reference</title>
4 <link href="inspircd.doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.4.4-20050815 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8 <h1>ConfigReader Class Reference</h1><!-- doxytag: class="ConfigReader" --><!-- doxytag: inherits="classbase" -->Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file.  
9 <a href="#_details">More...</a>
10 <p>
11 <code>#include &lt;<a class="el" href="modules_8h-source.html">modules.h</a>&gt;</code>
12 <p>
13 Inheritance diagram for ConfigReader:<p><center><img src="classConfigReader__inherit__graph.gif" border="0" usemap="#ConfigReader__inherit__map" alt="Inheritance graph"></center>
14 <map name="ConfigReader__inherit__map">
15 <area href="classclassbase.html" shape="rect" coords="19,7,99,34" alt="">
16 </map>
17 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for ConfigReader:<p><center><img src="classConfigReader__coll__graph.gif" border="0" usemap="#ConfigReader__coll__map" alt="Collaboration graph"></center>
18 <map name="ConfigReader__coll__map">
19 <area href="classclassbase.html" shape="rect" coords="7,97,87,124" alt="">
20 </map>
21 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classConfigReader-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
22 <tr><td></td></tr>
23 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
24 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#ConfigReader_28_29">ConfigReader</a> ()</td></tr>
25
26 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#ConfigReader_28_29"></a><br></td></tr>
27 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#ConfigReader_28std_3A_3Astring_20filename_29">ConfigReader</a> (<a class="el" href="namespaceirc.html#string">std::string</a> filename)</td></tr>
28
29 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Overloaded constructor.  <a href="#ConfigReader_28std_3A_3Astring_20filename_29"></a><br></td></tr>
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#_7EConfigReader_28_29">~ConfigReader</a> ()</td></tr>
31
32 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default destructor.  <a href="#_7EConfigReader_28_29"></a><br></td></tr>
33 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ReadValue</a> (<a class="el" href="namespaceirc.html#string">std::string</a> tag, <a class="el" href="namespaceirc.html#string">std::string</a> name, int index)</td></tr>
34
35 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves a value from the config file.  <a href="#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29"></a><br></td></tr>
36 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ReadFlag</a> (<a class="el" href="namespaceirc.html#string">std::string</a> tag, <a class="el" href="namespaceirc.html#string">std::string</a> name, int index)</td></tr>
37
38 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves a boolean value from the config file.  <a href="#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29"></a><br></td></tr>
39 <tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">ReadInteger</a> (<a class="el" href="namespaceirc.html#string">std::string</a> tag, <a class="el" href="namespaceirc.html#string">std::string</a> name, int index, bool needs_unsigned)</td></tr>
40
41 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves an integer value from the config file.  <a href="#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29"></a><br></td></tr>
42 <tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#GetError_28_29">GetError</a> ()</td></tr>
43
44 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the last error to occur.  <a href="#GetError_28_29"></a><br></td></tr>
45 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">Enumerate</a> (<a class="el" href="namespaceirc.html#string">std::string</a> tag)</td></tr>
46
47 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Counts the number of times a given tag appears in the config file.  <a href="#Enumerate_28std_3A_3Astring_20tag_29"></a><br></td></tr>
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#Verify_28_29">Verify</a> ()</td></tr>
49
50 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if a config file is valid.  <a href="#Verify_28_29"></a><br></td></tr>
51 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">DumpErrors</a> (bool bail, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
52
53 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dumps the list of errors in a config file to an output location.  <a href="#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29"></a><br></td></tr>
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">EnumerateValues</a> (<a class="el" href="namespaceirc.html#string">std::string</a> tag, int index)</td></tr>
55
56 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of items within a tag.  <a href="#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29"></a><br></td></tr>
57 <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::stringstream *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#cache">cache</a></td></tr>
59
60 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed).  <a href="#cache"></a><br></td></tr>
61 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::stringstream *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#errorlog">errorlog</a></td></tr>
62
63 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#readerror">readerror</a></td></tr>
64
65 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to store errors.  <a href="#readerror"></a><br></td></tr>
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classConfigReader.html#error">error</a></td></tr>
67
68 </table>
69 <hr><a name="_details"></a><h2>Detailed Description</h2>
70 Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. 
71 <p>
72 It may either be instantiated with one parameter or none. Constructing the class using one parameter allows you to specify a path to your own configuration file, otherwise, inspircd.conf is read.
73 <p>
74
75 <p>
76 Definition at line <a class="el" href="modules_8h-source.html#l01121">1121</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
77 <a class="anchor" name="ConfigReader_28_29"></a><!-- doxytag: member="ConfigReader::ConfigReader" ref="ConfigReader_28_29" args="()" --><p>
78 <table class="mdTable" cellpadding="2" cellspacing="0">
79   <tr>
80     <td class="mdRow">
81       <table cellpadding="0" cellspacing="0" border="0">
82         <tr>
83           <td class="md" nowrap valign="top">ConfigReader::ConfigReader           </td>
84           <td class="md" valign="top">(&nbsp;</td>
85           <td class="mdname1" valign="top" nowrap>          </td>
86           <td class="md" valign="top">&nbsp;)&nbsp;</td>
87           <td class="md" nowrap></td>
88         </tr>
89       </table>
90     </td>
91   </tr>
92 </table>
93 <table cellspacing="5" cellpadding="0" border="0">
94   <tr>
95     <td>
96       &nbsp;
97     </td>
98     <td>
99
100 <p>
101 Default constructor. 
102 <p>
103 This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.
104 <p>
105 Definition at line <a class="el" href="modules_8cpp-source.html#l00796">796</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
106 <p>
107 References <a class="el" href="modules_8h-source.html#l01129">cache</a>, <a class="el" href="modules_8h-source.html#l01112">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01134">error</a>, <a class="el" href="modules_8h-source.html#l01130">errorlog</a>, <a class="el" href="modules_8cpp.html#include_5Fstack">include_stack</a>, and <a class="el" href="modules_8h-source.html#l01133">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00797"></a>00797 {
108 <a name="l00798"></a>00798         <a class="code" href="modules_8cpp.html#include_5Fstack">include_stack</a>.clear();
109 <a name="l00799"></a>00799         this-&gt;<a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
110 <a name="l00800"></a>00800         this-&gt;<a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
111 <a name="l00801"></a>00801         this-&gt;<a class="code" href="classConfigReader.html#readerror">readerror</a> = LoadConf(CONFIG_FILE,this-&gt;cache,this-&gt;errorlog);
112 <a name="l00802"></a>00802         <span class="keywordflow">if</span> (!this-&gt;readerror)
113 <a name="l00803"></a>00803                 this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>;
114 <a name="l00804"></a>00804 }
115 </pre></div>
116 <p>
117     </td>
118   </tr>
119 </table>
120 <a class="anchor" name="ConfigReader_28std_3A_3Astring_20filename_29"></a><!-- doxytag: member="ConfigReader::ConfigReader" ref="ConfigReader_28std_3A_3Astring_20filename_29" args="(std::string filename)" --><p>
121 <table class="mdTable" cellpadding="2" cellspacing="0">
122   <tr>
123     <td class="mdRow">
124       <table cellpadding="0" cellspacing="0" border="0">
125         <tr>
126           <td class="md" nowrap valign="top">ConfigReader::ConfigReader           </td>
127           <td class="md" valign="top">(&nbsp;</td>
128           <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
129           <td class="mdname1" valign="top" nowrap> <em>filename</em>          </td>
130           <td class="md" valign="top">&nbsp;)&nbsp;</td>
131           <td class="md" nowrap></td>
132         </tr>
133       </table>
134     </td>
135   </tr>
136 </table>
137 <table cellspacing="5" cellpadding="0" border="0">
138   <tr>
139     <td>
140       &nbsp;
141     </td>
142     <td>
143
144 <p>
145 Overloaded constructor. 
146 <p>
147 This constructor initialises the ConfigReader class to read a user-specified config file
148 <p>
149 Definition at line <a class="el" href="modules_8cpp-source.html#l00816">816</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
150 <p>
151 References <a class="el" href="modules_8h-source.html#l01129">cache</a>, <a class="el" href="modules_8h-source.html#l01112">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01134">error</a>, <a class="el" href="modules_8h-source.html#l01130">errorlog</a>, and <a class="el" href="modules_8h-source.html#l01133">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00817"></a>00817 {
152 <a name="l00818"></a>00818         this-&gt;<a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
153 <a name="l00819"></a>00819         this-&gt;<a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
154 <a name="l00820"></a>00820         this-&gt;<a class="code" href="classConfigReader.html#readerror">readerror</a> = LoadConf(filename.c_str(),this-&gt;<a class="code" href="classConfigReader.html#cache">cache</a>,this-&gt;<a class="code" href="classConfigReader.html#errorlog">errorlog</a>);
155 <a name="l00821"></a>00821         <span class="keywordflow">if</span> (!this-&gt;readerror)
156 <a name="l00822"></a>00822                 this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>;
157 <a name="l00823"></a>00823 };
158 </pre></div>
159 <p>
160     </td>
161   </tr>
162 </table>
163 <a class="anchor" name="_7EConfigReader_28_29"></a><!-- doxytag: member="ConfigReader::~ConfigReader" ref="_7EConfigReader_28_29" args="()" --><p>
164 <table class="mdTable" cellpadding="2" cellspacing="0">
165   <tr>
166     <td class="mdRow">
167       <table cellpadding="0" cellspacing="0" border="0">
168         <tr>
169           <td class="md" nowrap valign="top">ConfigReader::~ConfigReader           </td>
170           <td class="md" valign="top">(&nbsp;</td>
171           <td class="mdname1" valign="top" nowrap>          </td>
172           <td class="md" valign="top">&nbsp;)&nbsp;</td>
173           <td class="md" nowrap></td>
174         </tr>
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 Default destructor. 
188 <p>
189 This method destroys the ConfigReader class.
190 <p>
191 Definition at line <a class="el" href="modules_8cpp-source.html#l00807">807</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
192 <p>
193 References <a class="el" href="modules_8h-source.html#l01129">cache</a>, and <a class="el" href="modules_8h-source.html#l01130">errorlog</a>.<div class="fragment"><pre class="fragment"><a name="l00808"></a>00808 {
194 <a name="l00809"></a>00809         <span class="keywordflow">if</span> (this-&gt;cache)
195 <a name="l00810"></a>00810                 <span class="keyword">delete</span> this-&gt;<a class="code" href="classConfigReader.html#cache">cache</a>;
196 <a name="l00811"></a>00811         <span class="keywordflow">if</span> (this-&gt;errorlog)
197 <a name="l00812"></a>00812                 <span class="keyword">delete</span> this-&gt;<a class="code" href="classConfigReader.html#errorlog">errorlog</a>;
198 <a name="l00813"></a>00813 }
199 </pre></div>
200 <p>
201     </td>
202   </tr>
203 </table>
204 <hr><h2>Member Function Documentation</h2>
205 <a class="anchor" name="DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29"></a><!-- doxytag: member="ConfigReader::DumpErrors" ref="DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29" args="(bool bail, userrec *user)" --><p>
206 <table class="mdTable" cellpadding="2" cellspacing="0">
207   <tr>
208     <td class="mdRow">
209       <table cellpadding="0" cellspacing="0" border="0">
210         <tr>
211           <td class="md" nowrap valign="top">void ConfigReader::DumpErrors           </td>
212           <td class="md" valign="top">(&nbsp;</td>
213           <td class="md" nowrap valign="top">bool&nbsp;</td>
214           <td class="mdname" nowrap> <em>bail</em>, </td>
215         </tr>
216         <tr>
217           <td class="md" nowrap align="right"></td>
218           <td class="md"></td>
219           <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> *&nbsp;</td>
220           <td class="mdname" nowrap> <em>user</em></td>
221         </tr>
222         <tr>
223           <td class="md"></td>
224           <td class="md">)&nbsp;</td>
225           <td class="md" colspan="2"></td>
226         </tr>
227       </table>
228     </td>
229   </tr>
230 </table>
231 <table cellspacing="5" cellpadding="0" border="0">
232   <tr>
233     <td>
234       &nbsp;
235     </td>
236     <td>
237
238 <p>
239 Dumps the list of errors in a config file to an output location. 
240 <p>
241 If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers.
242 <p>
243 Definition at line <a class="el" href="modules_8cpp-source.html#l00894">894</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
244 <p>
245 References <a class="el" href="modules_8h-source.html#l01130">errorlog</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00121">userrec::nick</a>.<div class="fragment"><pre class="fragment"><a name="l00895"></a>00895 {
246 <a name="l00896"></a>00896         <span class="keywordflow">if</span> (bail)
247 <a name="l00897"></a>00897         {
248 <a name="l00898"></a>00898                 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#errorlog">errorlog</a>-&gt;str().c_str());
249 <a name="l00899"></a>00899                 exit(0);
250 <a name="l00900"></a>00900         }
251 <a name="l00901"></a>00901         <span class="keywordflow">else</span>
252 <a name="l00902"></a>00902         {
253 <a name="l00903"></a>00903                 <span class="keywordtype">char</span> dataline[1024];
254 <a name="l00904"></a>00904                 <span class="keywordflow">if</span> (user)
255 <a name="l00905"></a>00905                 {
256 <a name="l00906"></a>00906                         WriteServ(user-&gt;<a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-&gt;<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>);
257 <a name="l00907"></a>00907                         <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>-&gt;eof())
258 <a name="l00908"></a>00908                         {
259 <a name="l00909"></a>00909                                 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>-&gt;getline(dataline,1024);
260 <a name="l00910"></a>00910                                 WriteServ(user-&gt;<a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-&gt;<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,dataline);
261 <a name="l00911"></a>00911                         }
262 <a name="l00912"></a>00912                 }
263 <a name="l00913"></a>00913                 <span class="keywordflow">else</span>
264 <a name="l00914"></a>00914                 {
265 <a name="l00915"></a>00915                         WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-&gt;<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>);
266 <a name="l00916"></a>00916                         <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>-&gt;eof())
267 <a name="l00917"></a>00917                         {
268 <a name="l00918"></a>00918                                 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>-&gt;getline(dataline,1024);
269 <a name="l00919"></a>00919                                 WriteOpers(dataline);
270 <a name="l00920"></a>00920                         }
271 <a name="l00921"></a>00921                 }
272 <a name="l00922"></a>00922                 <span class="keywordflow">return</span>;
273 <a name="l00923"></a>00923         }
274 <a name="l00924"></a>00924 }
275 </pre></div>
276 <p>
277     </td>
278   </tr>
279 </table>
280 <a class="anchor" name="Enumerate_28std_3A_3Astring_20tag_29"></a><!-- doxytag: member="ConfigReader::Enumerate" ref="Enumerate_28std_3A_3Astring_20tag_29" args="(std::string tag)" --><p>
281 <table class="mdTable" cellpadding="2" cellspacing="0">
282   <tr>
283     <td class="mdRow">
284       <table cellpadding="0" cellspacing="0" border="0">
285         <tr>
286           <td class="md" nowrap valign="top">int ConfigReader::Enumerate           </td>
287           <td class="md" valign="top">(&nbsp;</td>
288           <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
289           <td class="mdname1" valign="top" nowrap> <em>tag</em>          </td>
290           <td class="md" valign="top">&nbsp;)&nbsp;</td>
291           <td class="md" nowrap></td>
292         </tr>
293       </table>
294     </td>
295   </tr>
296 </table>
297 <table cellspacing="5" cellpadding="0" border="0">
298   <tr>
299     <td>
300       &nbsp;
301     </td>
302     <td>
303
304 <p>
305 Counts the number of times a given tag appears in the config file. 
306 <p>
307 This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of <a class="el" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader::ReadValue</a> to loop through all copies of a multiple instance tag.
308 <p>
309 Definition at line <a class="el" href="modules_8cpp-source.html#l00927">927</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
310 <p>
311 References <a class="el" href="modules_8h-source.html#l01129">cache</a>.<div class="fragment"><pre class="fragment"><a name="l00928"></a>00928 {
312 <a name="l00929"></a>00929         <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#cache">cache</a>,tag.c_str());
313 <a name="l00930"></a>00930 }
314 </pre></div>
315 <p>
316     </td>
317   </tr>
318 </table>
319 <a class="anchor" name="EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29"></a><!-- doxytag: member="ConfigReader::EnumerateValues" ref="EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29" args="(std::string tag, int index)" --><p>
320 <table class="mdTable" cellpadding="2" cellspacing="0">
321   <tr>
322     <td class="mdRow">
323       <table cellpadding="0" cellspacing="0" border="0">
324         <tr>
325           <td class="md" nowrap valign="top">int ConfigReader::EnumerateValues           </td>
326           <td class="md" valign="top">(&nbsp;</td>
327           <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
328           <td class="mdname" nowrap> <em>tag</em>, </td>
329         </tr>
330         <tr>
331           <td class="md" nowrap align="right"></td>
332           <td class="md"></td>
333           <td class="md" nowrap>int&nbsp;</td>
334           <td class="mdname" nowrap> <em>index</em></td>
335         </tr>
336         <tr>
337           <td class="md"></td>
338           <td class="md">)&nbsp;</td>
339           <td class="md" colspan="2"></td>
340         </tr>
341       </table>
342     </td>
343   </tr>
344 </table>
345 <table cellspacing="5" cellpadding="0" border="0">
346   <tr>
347     <td>
348       &nbsp;
349     </td>
350     <td>
351
352 <p>
353 Returns the number of items within a tag. 
354 <p>
355 For example if the tag was &lt;test tag="blah" data="foo"&gt; then this function would return 2. Spaces and newlines both qualify as valid seperators between values.
356 <p>
357 Definition at line <a class="el" href="modules_8cpp-source.html#l00932">932</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
358 <p>
359 References <a class="el" href="modules_8h-source.html#l01129">cache</a>.<div class="fragment"><pre class="fragment"><a name="l00933"></a>00933 {
360 <a name="l00934"></a>00934         <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#cache">cache</a>, tag.c_str(), index);
361 <a name="l00935"></a>00935 }
362 </pre></div>
363 <p>
364     </td>
365   </tr>
366 </table>
367 <a class="anchor" name="GetError_28_29"></a><!-- doxytag: member="ConfigReader::GetError" ref="GetError_28_29" args="()" --><p>
368 <table class="mdTable" cellpadding="2" cellspacing="0">
369   <tr>
370     <td class="mdRow">
371       <table cellpadding="0" cellspacing="0" border="0">
372         <tr>
373           <td class="md" nowrap valign="top">long ConfigReader::GetError           </td>
374           <td class="md" valign="top">(&nbsp;</td>
375           <td class="mdname1" valign="top" nowrap>          </td>
376           <td class="md" valign="top">&nbsp;)&nbsp;</td>
377           <td class="md" nowrap></td>
378         </tr>
379       </table>
380     </td>
381   </tr>
382 </table>
383 <table cellspacing="5" cellpadding="0" border="0">
384   <tr>
385     <td>
386       &nbsp;
387     </td>
388     <td>
389
390 <p>
391 Returns the last error to occur. 
392 <p>
393 Valid errors can be found by looking in <a class="el" href="modules_8h.html">modules.h</a>. Any nonzero value indicates an error condition. A call to <a class="el" href="classConfigReader.html#GetError_28_29">GetError()</a> resets the error flag back to 0.
394 <p>
395 Definition at line <a class="el" href="modules_8cpp-source.html#l00887">887</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
396 <p>
397 References <a class="el" href="modules_8h-source.html#l01134">error</a>.<div class="fragment"><pre class="fragment"><a name="l00888"></a>00888 {
398 <a name="l00889"></a>00889         <span class="keywordtype">long</span> olderr = this-&gt;<a class="code" href="classConfigReader.html#error">error</a>;
399 <a name="l00890"></a>00890         this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = 0;
400 <a name="l00891"></a>00891         <span class="keywordflow">return</span> olderr;
401 <a name="l00892"></a>00892 }
402 </pre></div>
403 <p>
404     </td>
405   </tr>
406 </table>
407 <a class="anchor" name="ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29"></a><!-- doxytag: member="ConfigReader::ReadFlag" ref="ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29" args="(std::string tag, std::string name, int index)" --><p>
408 <table class="mdTable" cellpadding="2" cellspacing="0">
409   <tr>
410     <td class="mdRow">
411       <table cellpadding="0" cellspacing="0" border="0">
412         <tr>
413           <td class="md" nowrap valign="top">bool ConfigReader::ReadFlag           </td>
414           <td class="md" valign="top">(&nbsp;</td>
415           <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
416           <td class="mdname" nowrap> <em>tag</em>, </td>
417         </tr>
418         <tr>
419           <td class="md" nowrap align="right"></td>
420           <td class="md"></td>
421           <td class="md" nowrap><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
422           <td class="mdname" nowrap> <em>name</em>, </td>
423         </tr>
424         <tr>
425           <td class="md" nowrap align="right"></td>
426           <td class="md"></td>
427           <td class="md" nowrap>int&nbsp;</td>
428           <td class="mdname" nowrap> <em>index</em></td>
429         </tr>
430         <tr>
431           <td class="md"></td>
432           <td class="md">)&nbsp;</td>
433           <td class="md" colspan="2"></td>
434         </tr>
435       </table>
436     </td>
437   </tr>
438 </table>
439 <table cellspacing="5" cellpadding="0" border="0">
440   <tr>
441     <td>
442       &nbsp;
443     </td>
444     <td>
445
446 <p>
447 Retrieves a boolean value from the config file. 
448 <p>
449 This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false.
450 <p>
451 Definition at line <a class="el" href="modules_8cpp-source.html#l00841">841</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
452 <p>
453 References <a class="el" href="modules_8h-source.html#l01129">cache</a>, <a class="el" href="modules_8h-source.html#l01111">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01134">error</a>.<div class="fragment"><pre class="fragment"><a name="l00842"></a>00842 {
454 <a name="l00843"></a>00843         <span class="keywordtype">char</span> val[MAXBUF];
455 <a name="l00844"></a>00844         <span class="keywordtype">char</span> t[MAXBUF];
456 <a name="l00845"></a>00845         <span class="keywordtype">char</span> n[MAXBUF];
457 <a name="l00846"></a>00846         strlcpy(t,tag.c_str(),MAXBUF);
458 <a name="l00847"></a>00847         strlcpy(n,name.c_str(),MAXBUF);
459 <a name="l00848"></a>00848         <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val);
460 <a name="l00849"></a>00849         <span class="keywordflow">if</span> (!res)
461 <a name="l00850"></a>00850         {
462 <a name="l00851"></a>00851                 this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>;
463 <a name="l00852"></a>00852                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
464 <a name="l00853"></a>00853         }
465 <a name="l00854"></a>00854         <a class="code" href="namespaceirc.html#string">std::string</a> s = val;
466 <a name="l00855"></a>00855         <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>));
467 <a name="l00856"></a>00856 }
468 </pre></div>
469 <p>
470     </td>
471   </tr>
472 </table>
473 <a class="anchor" name="ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29"></a><!-- doxytag: member="ConfigReader::ReadInteger" ref="ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29" args="(std::string tag, std::string name, int index, bool needs_unsigned)" --><p>
474 <table class="mdTable" cellpadding="2" cellspacing="0">
475   <tr>
476     <td class="mdRow">
477       <table cellpadding="0" cellspacing="0" border="0">
478         <tr>
479           <td class="md" nowrap valign="top">long ConfigReader::ReadInteger           </td>
480           <td class="md" valign="top">(&nbsp;</td>
481           <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
482           <td class="mdname" nowrap> <em>tag</em>, </td>
483         </tr>
484         <tr>
485           <td class="md" nowrap align="right"></td>
486           <td class="md"></td>
487           <td class="md" nowrap><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
488           <td class="mdname" nowrap> <em>name</em>, </td>
489         </tr>
490         <tr>
491           <td class="md" nowrap align="right"></td>
492           <td class="md"></td>
493           <td class="md" nowrap>int&nbsp;</td>
494           <td class="mdname" nowrap> <em>index</em>, </td>
495         </tr>
496         <tr>
497           <td class="md" nowrap align="right"></td>
498           <td class="md"></td>
499           <td class="md" nowrap>bool&nbsp;</td>
500           <td class="mdname" nowrap> <em>needs_unsigned</em></td>
501         </tr>
502         <tr>
503           <td class="md"></td>
504           <td class="md">)&nbsp;</td>
505           <td class="md" colspan="2"></td>
506         </tr>
507       </table>
508     </td>
509   </tr>
510 </table>
511 <table cellspacing="5" cellpadding="0" border="0">
512   <tr>
513     <td>
514       &nbsp;
515     </td>
516     <td>
517
518 <p>
519 Retrieves an integer value from the config file. 
520 <p>
521 This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to <a class="el" href="classConfigReader.html#GetError_28_29">GetError()</a> will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and <a class="el" href="classConfigReader.html#GetError_28_29">GetError()</a> will return CONF_NOT_UNSIGNED
522 <p>
523 Definition at line <a class="el" href="modules_8cpp-source.html#l00858">858</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
524 <p>
525 References <a class="el" href="modules_8h-source.html#l01129">cache</a>, <a class="el" href="modules_8h-source.html#l01109">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l01110">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l01111">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01134">error</a>.<div class="fragment"><pre class="fragment"><a name="l00859"></a>00859 {
526 <a name="l00860"></a>00860         <span class="keywordtype">char</span> val[MAXBUF];
527 <a name="l00861"></a>00861         <span class="keywordtype">char</span> t[MAXBUF];
528 <a name="l00862"></a>00862         <span class="keywordtype">char</span> n[MAXBUF];
529 <a name="l00863"></a>00863         strlcpy(t,tag.c_str(),MAXBUF);
530 <a name="l00864"></a>00864         strlcpy(n,name.c_str(),MAXBUF);
531 <a name="l00865"></a>00865         <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val);
532 <a name="l00866"></a>00866         <span class="keywordflow">if</span> (!res)
533 <a name="l00867"></a>00867         {
534 <a name="l00868"></a>00868                 this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>;
535 <a name="l00869"></a>00869                 <span class="keywordflow">return</span> 0;
536 <a name="l00870"></a>00870         }
537 <a name="l00871"></a>00871         <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; strlen(val); i++)
538 <a name="l00872"></a>00872         {
539 <a name="l00873"></a>00873                 <span class="keywordflow">if</span> (!isdigit(val[i]))
540 <a name="l00874"></a>00874                 {
541 <a name="l00875"></a>00875                         this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">CONF_NOT_A_NUMBER</a>;
542 <a name="l00876"></a>00876                         <span class="keywordflow">return</span> 0;
543 <a name="l00877"></a>00877                 }
544 <a name="l00878"></a>00878         }
545 <a name="l00879"></a>00879         <span class="keywordflow">if</span> ((needs_unsigned) &amp;&amp; (atoi(val)&lt;0))
546 <a name="l00880"></a>00880         {
547 <a name="l00881"></a>00881                 this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">CONF_NOT_UNSIGNED</a>;
548 <a name="l00882"></a>00882                 <span class="keywordflow">return</span> 0;
549 <a name="l00883"></a>00883         }
550 <a name="l00884"></a>00884         <span class="keywordflow">return</span> atoi(val);
551 <a name="l00885"></a>00885 }
552 </pre></div>
553 <p>
554     </td>
555   </tr>
556 </table>
557 <a class="anchor" name="ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29"></a><!-- doxytag: member="ConfigReader::ReadValue" ref="ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29" args="(std::string tag, std::string name, int index)" --><p>
558 <table class="mdTable" cellpadding="2" cellspacing="0">
559   <tr>
560     <td class="mdRow">
561       <table cellpadding="0" cellspacing="0" border="0">
562         <tr>
563           <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> ConfigReader::ReadValue           </td>
564           <td class="md" valign="top">(&nbsp;</td>
565           <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
566           <td class="mdname" nowrap> <em>tag</em>, </td>
567         </tr>
568         <tr>
569           <td class="md" nowrap align="right"></td>
570           <td class="md"></td>
571           <td class="md" nowrap><a class="el" href="namespaceirc.html#string">std::string</a>&nbsp;</td>
572           <td class="mdname" nowrap> <em>name</em>, </td>
573         </tr>
574         <tr>
575           <td class="md" nowrap align="right"></td>
576           <td class="md"></td>
577           <td class="md" nowrap>int&nbsp;</td>
578           <td class="mdname" nowrap> <em>index</em></td>
579         </tr>
580         <tr>
581           <td class="md"></td>
582           <td class="md">)&nbsp;</td>
583           <td class="md" colspan="2"></td>
584         </tr>
585       </table>
586     </td>
587   </tr>
588 </table>
589 <table cellspacing="5" cellpadding="0" border="0">
590   <tr>
591     <td>
592       &nbsp;
593     </td>
594     <td>
595
596 <p>
597 Retrieves a value from the config file. 
598 <p>
599 This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.
600 <p>
601 Definition at line <a class="el" href="modules_8cpp-source.html#l00825">825</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
602 <p>
603 References <a class="el" href="modules_8h-source.html#l01129">cache</a>, <a class="el" href="modules_8h-source.html#l01111">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01134">error</a>.<div class="fragment"><pre class="fragment"><a name="l00826"></a>00826 {
604 <a name="l00827"></a>00827         <span class="keywordtype">char</span> val[MAXBUF];
605 <a name="l00828"></a>00828         <span class="keywordtype">char</span> t[MAXBUF];
606 <a name="l00829"></a>00829         <span class="keywordtype">char</span> n[MAXBUF];
607 <a name="l00830"></a>00830         strlcpy(t,tag.c_str(),MAXBUF);
608 <a name="l00831"></a>00831         strlcpy(n,name.c_str(),MAXBUF);
609 <a name="l00832"></a>00832         <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val);
610 <a name="l00833"></a>00833         <span class="keywordflow">if</span> (!res)
611 <a name="l00834"></a>00834         {
612 <a name="l00835"></a>00835                 this-&gt;<a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>;
613 <a name="l00836"></a>00836                 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
614 <a name="l00837"></a>00837         }
615 <a name="l00838"></a>00838         <span class="keywordflow">return</span> val;
616 <a name="l00839"></a>00839 }
617 </pre></div>
618 <p>
619     </td>
620   </tr>
621 </table>
622 <a class="anchor" name="Verify_28_29"></a><!-- doxytag: member="ConfigReader::Verify" ref="Verify_28_29" args="()" --><p>
623 <table class="mdTable" cellpadding="2" cellspacing="0">
624   <tr>
625     <td class="mdRow">
626       <table cellpadding="0" cellspacing="0" border="0">
627         <tr>
628           <td class="md" nowrap valign="top">bool ConfigReader::Verify           </td>
629           <td class="md" valign="top">(&nbsp;</td>
630           <td class="mdname1" valign="top" nowrap>          </td>
631           <td class="md" valign="top">&nbsp;)&nbsp;</td>
632           <td class="md" nowrap></td>
633         </tr>
634       </table>
635     </td>
636   </tr>
637 </table>
638 <table cellspacing="5" cellpadding="0" border="0">
639   <tr>
640     <td>
641       &nbsp;
642     </td>
643     <td>
644
645 <p>
646 Returns true if a config file is valid. 
647 <p>
648 This method is partially implemented and will only return false if the config file does not exist or could not be opened.
649 <p>
650 Definition at line <a class="el" href="modules_8cpp-source.html#l00937">937</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
651 <p>
652 References <a class="el" href="modules_8h-source.html#l01133">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00938"></a>00938 {
653 <a name="l00939"></a>00939         <span class="keywordflow">return</span> this-&gt;<a class="code" href="classConfigReader.html#readerror">readerror</a>;
654 <a name="l00940"></a>00940 }
655 </pre></div>
656 <p>
657     </td>
658   </tr>
659 </table>
660 <hr><h2>Member Data Documentation</h2>
661 <a class="anchor" name="cache"></a><!-- doxytag: member="ConfigReader::cache" ref="cache" args="" --><p>
662 <table class="mdTable" cellpadding="2" cellspacing="0">
663   <tr>
664     <td class="mdRow">
665       <table cellpadding="0" cellspacing="0" border="0">
666         <tr>
667           <td class="md" nowrap valign="top">std::stringstream* <a class="el" href="classConfigReader.html#cache">ConfigReader::cache</a><code> [protected]</code>          </td>
668         </tr>
669       </table>
670     </td>
671   </tr>
672 </table>
673 <table cellspacing="5" cellpadding="0" border="0">
674   <tr>
675     <td>
676       &nbsp;
677     </td>
678     <td>
679
680 <p>
681 The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed). 
682 <p>
683 It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.
684 <p>
685 Definition at line <a class="el" href="modules_8h-source.html#l01129">1129</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
686 <p>
687 Referenced by <a class="el" href="modules_8cpp-source.html#l00796">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00927">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00932">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00841">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00858">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00825">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00807">~ConfigReader()</a>.    </td>
688   </tr>
689 </table>
690 <a class="anchor" name="error"></a><!-- doxytag: member="ConfigReader::error" ref="error" args="" --><p>
691 <table class="mdTable" cellpadding="2" cellspacing="0">
692   <tr>
693     <td class="mdRow">
694       <table cellpadding="0" cellspacing="0" border="0">
695         <tr>
696           <td class="md" nowrap valign="top">long <a class="el" href="classConfigReader.html#error">ConfigReader::error</a><code> [protected]</code>          </td>
697         </tr>
698       </table>
699     </td>
700   </tr>
701 </table>
702 <table cellspacing="5" cellpadding="0" border="0">
703   <tr>
704     <td>
705       &nbsp;
706     </td>
707     <td>
708
709 <p>
710
711 <p>
712 Definition at line <a class="el" href="modules_8h-source.html#l01134">1134</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
713 <p>
714 Referenced by <a class="el" href="modules_8cpp-source.html#l00796">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00887">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00841">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00858">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00825">ReadValue()</a>.    </td>
715   </tr>
716 </table>
717 <a class="anchor" name="errorlog"></a><!-- doxytag: member="ConfigReader::errorlog" ref="errorlog" args="" --><p>
718 <table class="mdTable" cellpadding="2" cellspacing="0">
719   <tr>
720     <td class="mdRow">
721       <table cellpadding="0" cellspacing="0" border="0">
722         <tr>
723           <td class="md" nowrap valign="top">std::stringstream* <a class="el" href="classConfigReader.html#errorlog">ConfigReader::errorlog</a><code> [protected]</code>          </td>
724         </tr>
725       </table>
726     </td>
727   </tr>
728 </table>
729 <table cellspacing="5" cellpadding="0" border="0">
730   <tr>
731     <td>
732       &nbsp;
733     </td>
734     <td>
735
736 <p>
737
738 <p>
739 Definition at line <a class="el" href="modules_8h-source.html#l01130">1130</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
740 <p>
741 Referenced by <a class="el" href="modules_8cpp-source.html#l00796">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00894">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00807">~ConfigReader()</a>.    </td>
742   </tr>
743 </table>
744 <a class="anchor" name="readerror"></a><!-- doxytag: member="ConfigReader::readerror" ref="readerror" args="" --><p>
745 <table class="mdTable" cellpadding="2" cellspacing="0">
746   <tr>
747     <td class="mdRow">
748       <table cellpadding="0" cellspacing="0" border="0">
749         <tr>
750           <td class="md" nowrap valign="top">bool <a class="el" href="classConfigReader.html#readerror">ConfigReader::readerror</a><code> [protected]</code>          </td>
751         </tr>
752       </table>
753     </td>
754   </tr>
755 </table>
756 <table cellspacing="5" cellpadding="0" border="0">
757   <tr>
758     <td>
759       &nbsp;
760     </td>
761     <td>
762
763 <p>
764 Used to store errors. 
765 <p>
766
767 <p>
768 Definition at line <a class="el" href="modules_8h-source.html#l01133">1133</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
769 <p>
770 Referenced by <a class="el" href="modules_8cpp-source.html#l00796">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00937">Verify()</a>.    </td>
771   </tr>
772 </table>
773 <hr>The documentation for this class was generated from the following files:<ul>
774 <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul>
775 <hr size="1"><address style="align: right;"><small>Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by&nbsp;
776 <a href="http://www.doxygen.org/index.html">
777 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address>
778 </body>
779 </html>