Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iCommandLineParser Struct Reference

A utility class that makes it easier to parse the command line. More...

#include <cmdline.h>

Inheritance diagram for iCommandLineParser:

iBase csCommandLineParser List of all members.

Public Methods

virtual void Initialize (int argc, const char *const argv[])=0
 Initialize for the given command line. More...

virtual void Reset ()=0
 Clear all options and names.

virtual const char* GetOption (const char *iName, int iIndex=0) const=0
 Query specific commandline option (you can query second etc. such option).

virtual const char* GetName (int iIndex=0) const=0
 Query filename specified on commandline (that is, without leading '-').

virtual void AddOption (const char *iName, const char *iValue)=0
 Add a command-line option to the command-line option array.

virtual void AddName (const char *iName)=0
 Add a command-line name to the command-line names array.

virtual bool ReplaceOption (const char *iName, const char *iValue, int iIndex=0)=0
 Replace the Nth command-line option with a new value.

virtual bool ReplaceName (const char *iValue, int iIndex=0)=0
 Replace the Nth command-line name with a new value.


Detailed Description

A utility class that makes it easier to parse the command line.


Member Function Documentation

void iCommandLineParser::Initialize ( int argc,
const char *const argv[] ) [pure virtual]
 

Initialize for the given command line.

Options from command line are added to any options already present --- i.e. those added via AddName() or AddOption().

Reimplemented in csCommandLineParser.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000