ICmdLine

Command line interface. More...

#include

Public Member Functions

virtual const ICmdLineArg * GetArg (int n) const =0
virtual int GetArgCount () const =0
virtual const ICmdLineArg * FindArg (const ECmdLineArgType ArgType, const char *name, bool caseSensitive=false) const =0

Detailed Description

Command line interface.

Member Function Documentation

◆ FindArg()

virtual const ICmdLineArg* ICmdLine::FindArg ( const ECmdLineArgType ArgType,
const char * name,
bool caseSensitive = false
) const
pure virtual

Finds an argument in the command line.

Parameters
nameName of the argument to find, excluding any '+' or '-'
Returns
Pointer to a ICmdLineArg class containing the specified argument, or NULL if the argument was not found.

◆ GetArg()

virtual const ICmdLineArg* ICmdLine::GetArg ( int n) const
pure virtual

Returns the n'th command line argument.

Parameters
n0 returns executable name, otherwise returns n'th argument.
Returns
Pointer to the command line argument at index specified by idx.

◆ GetArgCount()

virtual int ICmdLine::GetArgCount ( ) const
pure virtual
Returns
The number of command line arguments.