<a name="a0" doxytag="FileReader::FileReader"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<a name="a0" doxytag="FileReader::FileReader"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<p>
This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0.
<p>
<p>
This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0.
<p>
-<div class="fragment"><pre>00328 {
-00329 <a class="code" href="modules_8h.html#a10">file_cache</a> c;
-00330 readfile(c,filename.c_str());
-00331 this-><a class="code" href="classFileReader.html#o0">fc</a> = c;
-00332 }
+<div class="fragment"><pre>00330 {
+00331 <a class="code" href="modules_8h.html#a10">file_cache</a> c;
+00332 readfile(c,filename.c_str());
+00333 this-><a class="code" href="classFileReader.html#o0">fc</a> = c;
+00334 }
<p>
This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.
<p>
<p>
This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.
<p>
-<div class="fragment"><pre>00351 {
-00352 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#o0">fc</a>.size() == 0)
-00353 {
-00354 <span class="keywordflow">return</span>(false);
-00355 }
-00356 <span class="keywordflow">else</span>
-00357 {
-00358 <span class="keywordflow">return</span>(true);
-00359 }
-00360 }
+<div class="fragment"><pre>00353 {
+00354 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#o0">fc</a>.size() == 0)
+00355 {
+00356 <span class="keywordflow">return</span>(false);
+00357 }
+00358 <span class="keywordflow">else</span>
+00359 {
+00360 <span class="keywordflow">return</span>(true);
+00361 }
+00362 }
<p>
This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.
<p>
<p>
This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.
<p>
-<div class="fragment"><pre>00370 {
-00371 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>.size();
-00372 }
+<div class="fragment"><pre>00372 {
+00373 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>.size();
+00374 }
-<div class="fragment"><pre>00363 {
-00364 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#o0">fc</a>.size()))
-00365 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
-00366 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>[x];
-00367 }
+<div class="fragment"><pre>00365 {
+00366 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#o0">fc</a>.size()))
+00367 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
+00368 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>[x];
+00369 }
<p>
This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0.
<p>
<p>
This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0.
<p>
-<div class="fragment"><pre>00339 {
-00340 <a class="code" href="modules_8h.html#a10">file_cache</a> c;
-00341 readfile(c,filename.c_str());
-00342 this-><a class="code" href="classFileReader.html#o0">fc</a> = c;
-00343 }
+<div class="fragment"><pre>00341 {
+00342 <a class="code" href="modules_8h.html#a10">file_cache</a> c;
+00343 readfile(c,filename.c_str());
+00344 this-><a class="code" href="classFileReader.html#o0">fc</a> = c;
+00345 }
-Referenced by <a class="el" href="modules_8cpp-source.html#l00350">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00327">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00369">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00362">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00338">LoadFile()</a>. </td>
+Referenced by <a class="el" href="modules_8cpp-source.html#l00352">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00329">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00371">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00364">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00340">LoadFile()</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<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>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<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>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3-rc3 </small></address>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3-rc3 </small></address>