Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > 9ac0f970b86472ed1e748202d2848da8 > files > 154

colorer-take5-docs-0-0.beta5.4mdv2010.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Colorer-take5 Library: TextLinesStore Class Reference</title>
<link href="../styles/styles.css" rel="stylesheet" type="text/css">
<link href="../styles/doc.css" rel="stylesheet" type="text/css">
<link rel="icon" href="../images/logo-small-api.png"/>
</head>
<body>
<div align='center'>
<a href="../index.html">Home</a> |
<a href="modules.html">Modules</a> |
<a href="hierarchy.html">Class Hierarchy</a> |
<a href="classes.html">Alphabetical List</a> |
<a href="annotated.html">Compound List</a> |
<a href="pages.html">Related Pages</a>
</div>
<!-- Generated by Doxygen 1.4.6 -->
<h1>TextLinesStore Class Reference<br>
<small>
[<a class="el" href="group__colorer__viewer.html">Viewer/streaming</a>]</small>
</h1><!-- doxytag: class="TextLinesStore" --><!-- doxytag: inherits="LineSource" --><p>Inheritance diagram for TextLinesStore:
<p><center><img src="classTextLinesStore.png" usemap="#TextLinesStore_map" border="0" alt=""></center>
<map name="TextLinesStore_map">
<area href="classLineSource.html" alt="LineSource" shape="rect" coords="0,0,95,24">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Reads array of text lines and makes it accessible with <a class="el" href="classLineSource.html">LineSource</a> interface. 
<p>
All lines should be separated with \r\n , \n or \r characters. 
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLinesStore.html#e98a1d23482ccecbe3953b4b1a5b8fcc">TextLinesStore</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Empty constructor.  <a href="#e98a1d23482ccecbe3953b4b1a5b8fcc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLinesStore.html#2a6ec3b78f5ec0e1a9ea3e044741a301">loadFile</a> (const <a class="el" href="classString.html">String</a> *fileName, const <a class="el" href="classString.html">String</a> *inputEncoding, bool tab2spaces)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loads specified file into vector of strings.  <a href="#2a6ec3b78f5ec0e1a9ea3e044741a301"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5148df35404bf368f7b3403cb83e2532"></a><!-- doxytag: member="TextLinesStore::getFileName" ref="5148df35404bf368f7b3403cb83e2532" args="()" -->
const <a class="el" href="classString.html">String</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLinesStore.html#5148df35404bf368f7b3403cb83e2532">getFileName</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns loaded file name. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4e4464b5b1783e37e8cdaad581526fed"></a><!-- doxytag: member="TextLinesStore::getLineCount" ref="4e4464b5b1783e37e8cdaad581526fed" args="()" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLinesStore.html#4e4464b5b1783e37e8cdaad581526fed">getLineCount</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns total lines count in text. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca96c599047468783f918201f8e839b5"></a><!-- doxytag: member="TextLinesStore::getLine" ref="ca96c599047468783f918201f8e839b5" args="(int lno)" -->
<a class="el" href="classString.html">String</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>getLine</b> (int lno)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="50d734c537b2b41d74e97c910ecdb2f9"></a><!-- doxytag: member="TextLinesStore::freeFile" ref="50d734c537b2b41d74e97c910ecdb2f9" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextLinesStore.html#50d734c537b2b41d74e97c910ecdb2f9">freeFile</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Frees loaded file lines. <br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="e98a1d23482ccecbe3953b4b1a5b8fcc"></a><!-- doxytag: member="TextLinesStore::TextLinesStore" ref="e98a1d23482ccecbe3953b4b1a5b8fcc" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">TextLinesStore::TextLinesStore           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Empty constructor. 
<p>
Does nothing.     </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="2a6ec3b78f5ec0e1a9ea3e044741a301"></a><!-- doxytag: member="TextLinesStore::loadFile" ref="2a6ec3b78f5ec0e1a9ea3e044741a301" args="(const String *fileName, const String *inputEncoding, bool tab2spaces)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void TextLinesStore::loadFile           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classString.html">String</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>const <a class="el" href="classString.html">String</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>inputEncoding</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>tab2spaces</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Loads specified file into vector of strings. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fileName</em>&nbsp;</td><td>File to load. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>inputEncoding</em>&nbsp;</td><td>Input file encoding. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>tab2spaces</em>&nbsp;</td><td>Points, if we have to convert all tabs in file into spaces. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>

<br><br>
<center><small>
Colorer-take5 Library. Copyright &copy; 1999-2006 Igor Russkih.<br>
Generated at Fri Nov 24 17:13:14 2006 by doxygen 1.4.6.
</small><center>
    </BODY>
  </HTML>