Manages command line arguments. More...
#include <deCmdLineArgs.h>
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. | |
Manages command line arguments.
| deCmdLineArgs::deCmdLineArgs | ( | ) |
Creates a new empty command line object.
| deCmdLineArgs::~deCmdLineArgs | ( | ) |
| 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.
1.7.2