+References <a class="el" href="modules_8h-source.html#l00691">cache</a>.
+<p>
+<div class="fragment"><pre>00715 {
+00716 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index);
+00717 }
+</pre></div> </td>
+ </tr>
+</table>
+<a name="a6" doxytag="ConfigReader::GetError"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> long ConfigReader::GetError </td>
+ <td class="md" valign="top">( </td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+
+ </td>
+ <td>
+
+<p>
+Returns the last error to occur.
+<p>
+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#a6">GetError()</a> resets the error flag back to 0.
+<p>
+Definition at line <a class="el" href="modules_8cpp-source.html#l00669">669</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+<p>
+References <a class="el" href="modules_8h-source.html#l00696">error</a>.
+<p>
+<div class="fragment"><pre>00670 {
+00671 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>;
+00672 this->error = 0;
+00673 <span class="keywordflow">return</span> olderr;
+00674 }
+</pre></div> </td>
+ </tr>
+</table>
+<a name="a4" doxytag="ConfigReader::ReadFlag"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool ConfigReader::ReadFlag </td>
+ <td class="md" valign="top">( </td>
+ <td class="md" nowrap valign="top">std::string </td>
+ <td class="mdname" nowrap> <em>tag</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>std::string </td>
+ <td class="mdname" nowrap> <em>name</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>int </td>
+ <td class="mdname" nowrap> <em>index</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">) </td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+
+ </td>
+ <td>
+
+<p>
+Retrieves a boolean value from the config file.
+<p>
+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.
+<p>
+Definition at line <a class="el" href="modules_8cpp-source.html#l00623">623</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+<p>
+References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>.
+<p>
+<div class="fragment"><pre>00624 {
+00625 <span class="keywordtype">char</span> val[MAXBUF];
+00626 <span class="keywordtype">char</span> t[MAXBUF];
+00627 <span class="keywordtype">char</span> n[MAXBUF];
+00628 strlcpy(t,tag.c_str(),MAXBUF);
+00629 strlcpy(n,name.c_str(),MAXBUF);
+00630 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
+00631 <span class="keywordflow">if</span> (!res)
+00632 {
+00633 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>;
+00634 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00635 }
+00636 std::string s = val;
+00637 <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>));
+00638 }
+</pre></div> </td>
+ </tr>
+</table>
+<a name="a5" doxytag="ConfigReader::ReadInteger"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> long ConfigReader::ReadInteger </td>
+ <td class="md" valign="top">( </td>
+ <td class="md" nowrap valign="top">std::string </td>
+ <td class="mdname" nowrap> <em>tag</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>std::string </td>
+ <td class="mdname" nowrap> <em>name</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>int </td>
+ <td class="mdname" nowrap> <em>index</em>, </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td class="md" nowrap>bool </td>
+ <td class="mdname" nowrap> <em>needs_unsigned</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">) </td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+
+ </td>
+ <td>
+
+<p>
+Retrieves an integer value from the config file.
+<p>
+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#a6">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#a6">GetError()</a> will return CONF_NOT_UNSIGNED
+<p>
+Definition at line <a class="el" href="modules_8cpp-source.html#l00640">640</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+<p>
+References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00672">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00673">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>.
+<p>
+<div class="fragment"><pre>00641 {
+00642 <span class="keywordtype">char</span> val[MAXBUF];
+00643 <span class="keywordtype">char</span> t[MAXBUF];
+00644 <span class="keywordtype">char</span> n[MAXBUF];
+00645 strlcpy(t,tag.c_str(),MAXBUF);
+00646 strlcpy(n,name.c_str(),MAXBUF);
+00647 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
+00648 <span class="keywordflow">if</span> (!res)
+00649 {
+00650 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>;
+00651 <span class="keywordflow">return</span> 0;
+00652 }
+00653 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++)
+00654 {
+00655 <span class="keywordflow">if</span> (!isdigit(val[i]))
+00656 {
+00657 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a26">CONF_NOT_A_NUMBER</a>;
+00658 <span class="keywordflow">return</span> 0;
+00659 }
+00660 }
+00661 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0))
+00662 {
+00663 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_UNSIGNED</a>;
+00664 <span class="keywordflow">return</span> 0;
+00665 }
+00666 <span class="keywordflow">return</span> atoi(val);
+00667 }