deCmdLineArgs Class Reference

Manages command line arguments. More...

#include <deCmdLineArgs.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deCmdLineArgs ()
 Creates a new empty command line object.
 ~deCmdLineArgs ()
Management
int GetCount () const
 Retrieves the count of arguments.
const char * GetArgument (int index) const
 Retrieves the argument at the given index.
void AddArgument (const char *arg)
 Adds an argument to the end of the list.
void AddArgsSplit (const char *argLine)
 Parses command line passed into arguments which are then added to the end of the list.

Detailed Description

Manages command line arguments.

Author:
Plüss Roland
Version:
1.0
Date:
2008
Todo:
  • Adding function to remove arguments

Constructor & Destructor Documentation

deCmdLineArgs::deCmdLineArgs (  )

Creates a new empty command line object.

deCmdLineArgs::~deCmdLineArgs (  )

Member Function Documentation

void deCmdLineArgs::AddArgsSplit ( const char *  argLine )

Parses command line passed into arguments which are then added to the end of the list.

Arguments are considered separated by a white space. Quoted text strings are considered one argument. This function is present for operating systems not providing an entry point function which already splits up the arguments.

void deCmdLineArgs::AddArgument ( const char *  arg )

Adds an argument to the end of the list.

const char* deCmdLineArgs::GetArgument ( int  index ) const

Retrieves the argument at the given index.

int deCmdLineArgs::GetCount (  ) const [inline]

Retrieves the count of arguments.


The documentation for this class was generated from the following file: