Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

ARLib::Utility::ARArguments Class Reference

Class for manipulating program arguments as specified on the command line. More...

#include <ararguments.h>

List of all members.

Static Public Member Functions

void ToLowerCase (int argc, char *argv[])
 Converts any switches to lower case.
int FindSwitch (const char *name, int argc, char *argv[])
 Returns the index of the specified switch in the arguments.
char * GetSwitchValue (const char *name, int argc, char *argv[])
 Searches for the specified switch and returns the associated value.


Detailed Description

Class for manipulating program arguments as specified on the command line.


Member Function Documentation

int ARLib::Utility::ARArguments::FindSwitch const char *  name,
int  argc,
char *  argv[]
[static]
 

Returns the index of the specified switch in the arguments.

Parameters:
name The name of the switch to search for. This value is case-sensitive.
argc Number of arguments.
argv Pointer to an array of switch values.
Returns:
The index position in argv. If the switch was not found then -1 is returned.

char* ARLib::Utility::ARArguments::GetSwitchValue const char *  name,
int  argc,
char *  argv[]
[static]
 

Searches for the specified switch and returns the associated value.

Parameters:
name The name of the switch to search for. This value is case-sensitive.
argc Number of arguments.
argv Pointer to an array of switch values.
Returns:
A Pointer the the associated value. If the switch was not found then NULL is returned.

void ARLib::Utility::ARArguments::ToLowerCase int  argc,
char *  argv[]
[static]
 

Converts any switches to lower case.

Only switches starting with '-' with be converted. values associated with switches will not be converted e.g. -FileName "Sample.Tif" will be converted to -filename "Sample.Tif".

Parameters:
argc Number of arguments.
argv Pointer to an array of switch values.


The documentation for this class was generated from the following file:
Generated on Wed Aug 31 18:01:39 2005 for ARLib by  doxygen 1.3.9.1