Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 2839

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: iCommandLineParser Struct Reference (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul>
</div>
<h1>iCommandLineParser Struct Reference<br>
<small>
[<a class="el" href="group__util.html">Utilities</a>]</small>
</h1><!-- doxytag: class="iCommandLineParser" --><!-- doxytag: inherits="iBase" -->A utility class that makes it easier to parse the command line.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="iutil_2cmdline_8h-source.html">iutil/cmdline.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for iCommandLineParser:</div>
<div class="dynsection">
<p><center><img src="structiCommandLineParser__inherit__graph.png" border="0" usemap="#iCommandLineParser__inherit__map" alt="Inheritance graph"></center>
<map name="iCommandLineParser__inherit__map">
<area shape="rect" href="classscfImplementation1.html" title="scfImplementation1\&lt; csCommandLineParser, iCommandLineParser \&gt;" alt="" coords="5,161,485,188"><area shape="rect" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one..." alt="" coords="217,7,273,33"><area shape="rect" href="classcsCommandLineParser.html" title="Utility class that makes it easier to parse the command line." alt="" coords="159,239,332,265"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="structiCommandLineParser-members.html">List of all members.</a><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">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#b1c68ce1437771485a37afbeabb8fa16">AddName</a> (const char *iName)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a command-line name to the command-line names array.  <a href="#b1c68ce1437771485a37afbeabb8fa16"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#6a9dc0c50b8b749a811baf25b5bdaaad">AddOption</a> (const char *iName, const char *iValue)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a command-line option to the command-line option array.  <a href="#6a9dc0c50b8b749a811baf25b5bdaaad"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#5acb76c6b6fa5d8341484419f746cf85">GetAppDir</a> ()=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the directory in which the application executable resides; or the directory in which the Cocoa application wrapper resides on MacOS/X.  <a href="#5acb76c6b6fa5d8341484419f746cf85"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#9cdab73efb60f1717cdef1063117263d">GetAppPath</a> ()=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the full path to the application executable.  <a href="#9cdab73efb60f1717cdef1063117263d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#2c5724a88f108f20c67bf0665e958871">GetBoolOption</a> (const char *iName, bool defaultValue=false)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check for a -[no]option toggle.  <a href="#2c5724a88f108f20c67bf0665e958871"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#59cf7c820eafbe300ede2d1838a13026">GetName</a> (size_t iIndex=0) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Query filename specified on commandline (that is, without leading '-').  <a href="#59cf7c820eafbe300ede2d1838a13026"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#5348eafa1b694c037c0db3a7e5d71e8a">GetOption</a> (size_t iIndex=0) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Query specific commandline option by index.  <a href="#5348eafa1b694c037c0db3a7e5d71e8a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#d52917eda5e7f77ef3289840d68e5de2">GetOption</a> (const char *iName, size_t iIndex=0) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Query specific commandline option (you can query second etc. such option).  <a href="#d52917eda5e7f77ef3289840d68e5de2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#2fe876b28e464730c8de6ed3fe4c07e6">GetOptionName</a> (size_t iIndex) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Query the name of the Nth command line option.  <a href="#2fe876b28e464730c8de6ed3fe4c07e6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#d1c6d069c77096ff2fd1309b9b4aa549">GetResourceDir</a> ()=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the directory in which the application's resources resides.  <a href="#d1c6d069c77096ff2fd1309b9b4aa549"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#8d25bc427fec78a269dde101db5531ab">Initialize</a> (int argc, const char *const argv[])=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize for the given command line.  <a href="#8d25bc427fec78a269dde101db5531ab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#c7ae0c3765b857d094b42331af2c6932">ReplaceName</a> (const char *iValue, size_t iIndex=0)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Replace the Nth command-line name with a new value.  <a href="#c7ae0c3765b857d094b42331af2c6932"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#772e8cdddbe4f7c4bddf824c0ef67995">ReplaceOption</a> (const char *iName, const char *iValue, size_t iIndex=0)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Replace the Nth command-line option with a new value.  <a href="#772e8cdddbe4f7c4bddf824c0ef67995"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structiCommandLineParser.html#bed5ba8c694e129505b6d6174cd58344">Reset</a> ()=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clear all options and names.  <a href="#bed5ba8c694e129505b6d6174cd58344"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A utility class that makes it easier to parse the command line. 
<p>
Main creators of instances implementing this interface:<ul>
<li><a class="el" href="classcsInitializer.html#61494a85e1807c790070d36f5a055f10" title="Create everything needed to get a CS application operational.">csInitializer::CreateEnvironment()</a></li><li><a class="el" href="classcsInitializer.html#365fcdf91251bf194a79d0f7efd30476" title="Create the commandline parser.">csInitializer::CreateCommandLineParser()</a></li></ul>
<p>
Main ways to get pointers to this interface:<ul>
<li><a class="el" href="iutil_2objreg_8h.html#ee5a756951eeb09857882b549a563261" title="Query an interface from the registry.">csQueryRegistry()</a> </li></ul>

<p>Definition at line <a class="el" href="iutil_2cmdline_8h-source.html#l00041">41</a> of file <a class="el" href="iutil_2cmdline_8h-source.html">cmdline.h</a>.</p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b1c68ce1437771485a37afbeabb8fa16"></a><!-- doxytag: member="iCommandLineParser::AddName" ref="b1c68ce1437771485a37afbeabb8fa16" args="(const char *iName)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iCommandLineParser::AddName           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iName</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add a command-line name to the command-line names array. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#e8e9ea41074109a664dec1ca7701ee5c">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="6a9dc0c50b8b749a811baf25b5bdaaad"></a><!-- doxytag: member="iCommandLineParser::AddOption" ref="6a9dc0c50b8b749a811baf25b5bdaaad" args="(const char *iName, const char *iValue)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iCommandLineParser::AddOption           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add a command-line option to the command-line option array. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#3c1fe1bd12cec5c73a34734627be785c">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="5acb76c6b6fa5d8341484419f746cf85"></a><!-- doxytag: member="iCommandLineParser::GetAppDir" ref="5acb76c6b6fa5d8341484419f746cf85" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* iCommandLineParser::GetAppDir           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the directory in which the application executable resides; or the directory in which the Cocoa application wrapper resides on MacOS/X. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#20c3bd6f13d92711eccbbc43570a3db2">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="9cdab73efb60f1717cdef1063117263d"></a><!-- doxytag: member="iCommandLineParser::GetAppPath" ref="9cdab73efb60f1717cdef1063117263d" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* iCommandLineParser::GetAppPath           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the full path to the application executable. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#5ef064523111c32ed3d240d3f67ee833">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="2c5724a88f108f20c67bf0665e958871"></a><!-- doxytag: member="iCommandLineParser::GetBoolOption" ref="2c5724a88f108f20c67bf0665e958871" args="(const char *iName, bool defaultValue=false)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool iCommandLineParser::GetBoolOption           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>defaultValue</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Check for a -[no]option toggle. 
<p>
The difference to using <a class="el" href="structiCommandLineParser.html#d52917eda5e7f77ef3289840d68e5de2" title="Query specific commandline option (you can query second etc. such option).">GetOption()</a> to check for the two possibilities is that this function respects the argument order.<br>
 Example: the result of evaluating the arguments <code>-option -nooption</code> would depend on if you either check for "option" or "nooption" using <a class="el" href="structiCommandLineParser.html#d52917eda5e7f77ef3289840d68e5de2" title="Query specific commandline option (you can query second etc. such option).">GetOption()</a>, while <a class="el" href="structiCommandLineParser.html#2c5724a88f108f20c67bf0665e958871" title="Check for a -[no]option toggle.">GetBoolOption()</a> returns false because it looks for the <em>last</em> toggle argument. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iName</em>&nbsp;</td><td>The name of the positive toggle argument. The negative argument is created by inserting "no" in front of it. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>defaultValue</em>&nbsp;</td><td>The default value, if neither of the toggle arguments is found. </td></tr>
  </table>
</dl>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#6cdb8dd90d0c15d6e47114e260830279">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="59cf7c820eafbe300ede2d1838a13026"></a><!-- doxytag: member="iCommandLineParser::GetName" ref="59cf7c820eafbe300ede2d1838a13026" args="(size_t iIndex=0) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* iCommandLineParser::GetName           </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>iIndex</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Query filename specified on commandline (that is, without leading '-'). 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#41150d7d43dd337e3d3f9ca4bbabcc12">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="5348eafa1b694c037c0db3a7e5d71e8a"></a><!-- doxytag: member="iCommandLineParser::GetOption" ref="5348eafa1b694c037c0db3a7e5d71e8a" args="(size_t iIndex=0) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* iCommandLineParser::GetOption           </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>iIndex</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Query specific commandline option by index. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#336a5ec26f5cda00f5696023da9c7525">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="d52917eda5e7f77ef3289840d68e5de2"></a><!-- doxytag: member="iCommandLineParser::GetOption" ref="d52917eda5e7f77ef3289840d68e5de2" args="(const char *iName, size_t iIndex=0) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* iCommandLineParser::GetOption           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>iIndex</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Query specific commandline option (you can query second etc. such option). 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#c123c8db90e23346552c47b2b6138135">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="2fe876b28e464730c8de6ed3fe4c07e6"></a><!-- doxytag: member="iCommandLineParser::GetOptionName" ref="2fe876b28e464730c8de6ed3fe4c07e6" args="(size_t iIndex) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* iCommandLineParser::GetOptionName           </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>iIndex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Query the name of the Nth command line option. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#b65d818d702dab3ac75f0590b15209ac">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="d1c6d069c77096ff2fd1309b9b4aa549"></a><!-- doxytag: member="iCommandLineParser::GetResourceDir" ref="d1c6d069c77096ff2fd1309b9b4aa549" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* iCommandLineParser::GetResourceDir           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the directory in which the application's resources resides. 
<p>
On many platforms, this may be the same as the directory returned by <a class="el" href="structiCommandLineParser.html#5acb76c6b6fa5d8341484419f746cf85" title="Returns the directory in which the application executable resides; or the directory...">GetAppDir()</a>; however, on MacOS/X, it is the "Resources" directory within the Cocoa application wrapper. 
<p>Implemented in <a class="el" href="classcsCommandLineParser.html#00bb8be99d3ed54a89418040bd0073d6">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="8d25bc427fec78a269dde101db5531ab"></a><!-- doxytag: member="iCommandLineParser::Initialize" ref="8d25bc427fec78a269dde101db5531ab" args="(int argc, const char *const argv[])=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iCommandLineParser::Initialize           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *const &nbsp;</td>
          <td class="paramname"> <em>argv</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Initialize for the given command line. 
<p>
Options from command line are added to any options already present --- i.e. those added via <a class="el" href="structiCommandLineParser.html#b1c68ce1437771485a37afbeabb8fa16" title="Add a command-line name to the command-line names array.">AddName()</a> or <a class="el" href="structiCommandLineParser.html#6a9dc0c50b8b749a811baf25b5bdaaad" title="Add a command-line option to the command-line option array.">AddOption()</a>. 
<p>Implemented in <a class="el" href="classcsCommandLineParser.html#fc052ed19fef7130d26e7212e84d01aa">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="c7ae0c3765b857d094b42331af2c6932"></a><!-- doxytag: member="iCommandLineParser::ReplaceName" ref="c7ae0c3765b857d094b42331af2c6932" args="(const char *iValue, size_t iIndex=0)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool iCommandLineParser::ReplaceName           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>iIndex</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Replace the Nth command-line name with a new value. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#de2652e51a171cb23211f6b76b2e1e96">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="772e8cdddbe4f7c4bddf824c0ef67995"></a><!-- doxytag: member="iCommandLineParser::ReplaceOption" ref="772e8cdddbe4f7c4bddf824c0ef67995" args="(const char *iName, const char *iValue, size_t iIndex=0)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool iCommandLineParser::ReplaceOption           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>iValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>iIndex</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Replace the Nth command-line option with a new value. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#f26f2651cfb87de5956d2787949df884">csCommandLineParser</a>.</p>

</div>
</div><p>
<a class="anchor" name="bed5ba8c694e129505b6d6174cd58344"></a><!-- doxytag: member="iCommandLineParser::Reset" ref="bed5ba8c694e129505b6d6174cd58344" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void iCommandLineParser::Reset           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Clear all options and names. 
<p>

<p>Implemented in <a class="el" href="classcsCommandLineParser.html#04dd3a49d3e7ec2cfdf66dcf30bf8105">csCommandLineParser</a>.</p>

</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>iutil/<a class="el" href="iutil_2cmdline_8h-source.html">cmdline.h</a></ul>
<hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>