<!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: csCommandLineParser Class 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 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 Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>csCommandLineParser Class Reference</h1><!-- doxytag: class="csCommandLineParser" --><!-- doxytag: inherits="scfImplementation1< csCommandLineParser, iCommandLineParser >" -->Utility class that makes it easier to parse the command line. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="csutil_2cmdline_8h-source.html">csutil/cmdline.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for csCommandLineParser:</div> <div class="dynsection"> <p><center><img src="classcsCommandLineParser__inherit__graph.png" border="0" usemap="#csCommandLineParser__inherit__map" alt="Inheritance graph"></center> <map name="csCommandLineParser__inherit__map"> <area shape="rect" href="classscfImplementation1.html" title="scfImplementation1\< csCommandLineParser, iCommandLineParser \>" alt="" coords="60,161,540,188"><area shape="rect" href="classscfImplementation.html" title="scfImplementation\< csCommandLineParser \>" alt="" coords="5,84,328,111"><area shape="rect" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one..." alt="" coords="353,7,409,33"><area shape="rect" href="structiCommandLineParser.html" title="A utility class that makes it easier to parse the command line." alt="" coords="352,84,515,111"><area shape="rect" href="classCS_1_1Memory_1_1CustomAllocated.html" title="Class that overrides operator new/operator delete/etc." alt="" coords="56,7,277,33"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classcsCommandLineParser-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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#e8e9ea41074109a664dec1ca7701ee5c">AddName</a> (const char *iName)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a command-line name to the command-line names array. <a href="#e8e9ea41074109a664dec1ca7701ee5c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#3c1fe1bd12cec5c73a34734627be785c">AddOption</a> (const char *iName, const char *iValue)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a command-line option to the command-line option array. <a href="#3c1fe1bd12cec5c73a34734627be785c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#b1ccc5b40041ee41488dce2cad39ce6c">csCommandLineParser</a> (int argc, const char *const argv[])</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct with a given command line. <a href="#b1ccc5b40041ee41488dce2cad39ce6c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#287b095cb7957d0345a39927eb701bbb">csCommandLineParser</a> (<a class="el" href="structiBase.html">iBase</a> *Parent=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#287b095cb7957d0345a39927eb701bbb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#20c3bd6f13d92711eccbbc43570a3db2">GetAppDir</a> ()</td></tr> <tr><td class="mdescLeft"> </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="#20c3bd6f13d92711eccbbc43570a3db2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#5ef064523111c32ed3d240d3f67ee833">GetAppPath</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the full path to the application executable. <a href="#5ef064523111c32ed3d240d3f67ee833"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#6cdb8dd90d0c15d6e47114e260830279">GetBoolOption</a> (const char *iName, bool defaultValue=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Check for a -[no]option toggle. <a href="#6cdb8dd90d0c15d6e47114e260830279"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#41150d7d43dd337e3d3f9ca4bbabcc12">GetName</a> (size_t iIndex=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Query filename specified on commandline (that is, without leading '-'). <a href="#41150d7d43dd337e3d3f9ca4bbabcc12"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#336a5ec26f5cda00f5696023da9c7525">GetOption</a> (size_t iIndex=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Query specific commandline option by index. <a href="#336a5ec26f5cda00f5696023da9c7525"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#c123c8db90e23346552c47b2b6138135">GetOption</a> (const char *iName, size_t iIndex=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Query specific commandline option (you can query second etc. such option). <a href="#c123c8db90e23346552c47b2b6138135"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#b65d818d702dab3ac75f0590b15209ac">GetOptionName</a> (size_t iIndex) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Query the name of the Nth command line option. <a href="#b65d818d702dab3ac75f0590b15209ac"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#00bb8be99d3ed54a89418040bd0073d6">GetResourceDir</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the directory in which the application's resources resides. <a href="#00bb8be99d3ed54a89418040bd0073d6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#fc052ed19fef7130d26e7212e84d01aa">Initialize</a> (int argc, const char *const argv[])</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize for the given command line. <a href="#fc052ed19fef7130d26e7212e84d01aa"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#de2652e51a171cb23211f6b76b2e1e96">ReplaceName</a> (const char *iValue, size_t iIndex=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Replace the Nth command-line name with a new value. <a href="#de2652e51a171cb23211f6b76b2e1e96"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#f26f2651cfb87de5956d2787949df884">ReplaceOption</a> (const char *iName, const char *iValue, size_t iIndex=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Replace the Nth command-line option with a new value. <a href="#f26f2651cfb87de5956d2787949df884"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#04dd3a49d3e7ec2cfdf66dcf30bf8105">Reset</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clear all options and names. <a href="#04dd3a49d3e7ec2cfdf66dcf30bf8105"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsCommandLineParser.html#de7012f1693b21d373fcf49b7db919bd">~csCommandLineParser</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#de7012f1693b21d373fcf49b7db919bd"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Utility class that makes it easier to parse the command line. <p>Definition at line <a class="el" href="csutil_2cmdline_8h-source.html#l00053">53</a> of file <a class="el" href="csutil_2cmdline_8h-source.html">cmdline.h</a>.</p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="287b095cb7957d0345a39927eb701bbb"></a><!-- doxytag: member="csCommandLineParser::csCommandLineParser" ref="287b095cb7957d0345a39927eb701bbb" args="(iBase *Parent=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csCommandLineParser::csCommandLineParser </td> <td>(</td> <td class="paramtype"><a class="el" href="structiBase.html">iBase</a> * </td> <td class="paramname"> <em>Parent</em> = <code>0</code> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> </div> </div><p> <a class="anchor" name="b1ccc5b40041ee41488dce2cad39ce6c"></a><!-- doxytag: member="csCommandLineParser::csCommandLineParser" ref="b1ccc5b40041ee41488dce2cad39ce6c" args="(int argc, const char *const argv[])" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csCommandLineParser::csCommandLineParser </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char *const </td> <td class="paramname"> <em>argv</em>[]</td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Construct with a given command line. <p> </div> </div><p> <a class="anchor" name="de7012f1693b21d373fcf49b7db919bd"></a><!-- doxytag: member="csCommandLineParser::~csCommandLineParser" ref="de7012f1693b21d373fcf49b7db919bd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual csCommandLineParser::~csCommandLineParser </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e8e9ea41074109a664dec1ca7701ee5c"></a><!-- doxytag: member="csCommandLineParser::AddName" ref="e8e9ea41074109a664dec1ca7701ee5c" args="(const char *iName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void csCommandLineParser::AddName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iName</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Add a command-line name to the command-line names array. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#b1c68ce1437771485a37afbeabb8fa16">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="3c1fe1bd12cec5c73a34734627be785c"></a><!-- doxytag: member="csCommandLineParser::AddOption" ref="3c1fe1bd12cec5c73a34734627be785c" args="(const char *iName, const char *iValue)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void csCommandLineParser::AddOption </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iValue</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Add a command-line option to the command-line option array. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#6a9dc0c50b8b749a811baf25b5bdaaad">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="20c3bd6f13d92711eccbbc43570a3db2"></a><!-- doxytag: member="csCommandLineParser::GetAppDir" ref="20c3bd6f13d92711eccbbc43570a3db2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* csCommandLineParser::GetAppDir </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [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>Implements <a class="el" href="structiCommandLineParser.html#5acb76c6b6fa5d8341484419f746cf85">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="5ef064523111c32ed3d240d3f67ee833"></a><!-- doxytag: member="csCommandLineParser::GetAppPath" ref="5ef064523111c32ed3d240d3f67ee833" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* csCommandLineParser::GetAppPath </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the full path to the application executable. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#9cdab73efb60f1717cdef1063117263d">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="6cdb8dd90d0c15d6e47114e260830279"></a><!-- doxytag: member="csCommandLineParser::GetBoolOption" ref="6cdb8dd90d0c15d6e47114e260830279" args="(const char *iName, bool defaultValue=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool csCommandLineParser::GetBoolOption </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>defaultValue</em> = <code>false</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Check for a -[no]option toggle. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#2c5724a88f108f20c67bf0665e958871">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="41150d7d43dd337e3d3f9ca4bbabcc12"></a><!-- doxytag: member="csCommandLineParser::GetName" ref="41150d7d43dd337e3d3f9ca4bbabcc12" args="(size_t iIndex=0) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* csCommandLineParser::GetName </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>iIndex</em> = <code>0</code> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Query filename specified on commandline (that is, without leading '-'). <p> <p>Implements <a class="el" href="structiCommandLineParser.html#59cf7c820eafbe300ede2d1838a13026">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="336a5ec26f5cda00f5696023da9c7525"></a><!-- doxytag: member="csCommandLineParser::GetOption" ref="336a5ec26f5cda00f5696023da9c7525" args="(size_t iIndex=0) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* csCommandLineParser::GetOption </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>iIndex</em> = <code>0</code> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Query specific commandline option by index. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#5348eafa1b694c037c0db3a7e5d71e8a">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="c123c8db90e23346552c47b2b6138135"></a><!-- doxytag: member="csCommandLineParser::GetOption" ref="c123c8db90e23346552c47b2b6138135" args="(const char *iName, size_t iIndex=0) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* csCommandLineParser::GetOption </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>iIndex</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Query specific commandline option (you can query second etc. such option). <p> <p>Implements <a class="el" href="structiCommandLineParser.html#d52917eda5e7f77ef3289840d68e5de2">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="b65d818d702dab3ac75f0590b15209ac"></a><!-- doxytag: member="csCommandLineParser::GetOptionName" ref="b65d818d702dab3ac75f0590b15209ac" args="(size_t iIndex) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* csCommandLineParser::GetOptionName </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>iIndex</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Query the name of the Nth command line option. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#2fe876b28e464730c8de6ed3fe4c07e6">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="00bb8be99d3ed54a89418040bd0073d6"></a><!-- doxytag: member="csCommandLineParser::GetResourceDir" ref="00bb8be99d3ed54a89418040bd0073d6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* csCommandLineParser::GetResourceDir </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [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="classcsCommandLineParser.html#20c3bd6f13d92711eccbbc43570a3db2" 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>Implements <a class="el" href="structiCommandLineParser.html#d1c6d069c77096ff2fd1309b9b4aa549">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="fc052ed19fef7130d26e7212e84d01aa"></a><!-- doxytag: member="csCommandLineParser::Initialize" ref="fc052ed19fef7130d26e7212e84d01aa" args="(int argc, const char *const argv[])" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void csCommandLineParser::Initialize </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char *const </td> <td class="paramname"> <em>argv</em>[]</td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [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="classcsCommandLineParser.html#e8e9ea41074109a664dec1ca7701ee5c" title="Add a command-line name to the command-line names array.">AddName()</a> or <a class="el" href="classcsCommandLineParser.html#3c1fe1bd12cec5c73a34734627be785c" title="Add a command-line option to the command-line option array.">AddOption()</a>. <p>Implements <a class="el" href="structiCommandLineParser.html#8d25bc427fec78a269dde101db5531ab">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="de2652e51a171cb23211f6b76b2e1e96"></a><!-- doxytag: member="csCommandLineParser::ReplaceName" ref="de2652e51a171cb23211f6b76b2e1e96" args="(const char *iValue, size_t iIndex=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool csCommandLineParser::ReplaceName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iValue</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>iIndex</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Replace the Nth command-line name with a new value. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#c7ae0c3765b857d094b42331af2c6932">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="f26f2651cfb87de5956d2787949df884"></a><!-- doxytag: member="csCommandLineParser::ReplaceOption" ref="f26f2651cfb87de5956d2787949df884" args="(const char *iName, const char *iValue, size_t iIndex=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool csCommandLineParser::ReplaceOption </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>iValue</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>iIndex</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Replace the Nth command-line option with a new value. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#772e8cdddbe4f7c4bddf824c0ef67995">iCommandLineParser</a>.</p> </div> </div><p> <a class="anchor" name="04dd3a49d3e7ec2cfdf66dcf30bf8105"></a><!-- doxytag: member="csCommandLineParser::Reset" ref="04dd3a49d3e7ec2cfdf66dcf30bf8105" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void csCommandLineParser::Reset </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Clear all options and names. <p> <p>Implements <a class="el" href="structiCommandLineParser.html#bed5ba8c694e129505b6d6174cd58344">iCommandLineParser</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>csutil/<a class="el" href="csutil_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>