Main Page   Class Hierarchy   Compound List   Compound Members  

ArArgumentParser Class Reference

Class for parsing arguments. More...

#include <ariaUtil.h>

List of all members.

Public Methods

 ArArgumentParser (int *argc, char **argv)
 Constructor, takes the argc argv. More...

 ~ArArgumentParser (void)
 Destructor.

bool checkArgument (char *argument)
 Returns true if the argument was found. More...

char * checkParameterArgument (char *argument)
 Returns the word/argument after given argument or NULL if it is not present. More...


Detailed Description

Class for parsing arguments.

This class is made for parsing arguments form an argc/argv set... if you're using a winmain you can first toss your string at the ArArgumentBuilder above class ArArgumentParser and then use this parser on it


Constructor & Destructor Documentation

ArArgumentParser::ArArgumentParser int *    argc,
char **    argv
 

Constructor, takes the argc argv.

Parameters:
argc  a pointer to the argc used
argv  argv


Member Function Documentation

bool ArArgumentParser::checkArgument char *    argument
 

Returns true if the argument was found.

Parameters:
argument  the string to check for, if the argument is found its pulled from the list of arguments
Returns:
true if the argument was found, false otherwise

char * ArArgumentParser::checkParameterArgument char *    argument
 

Returns the word/argument after given argument or NULL if it is not present.

Parameters:
argument  the string to check for, if the argument is found its pulled from the list of arguments
Returns:
NULL if the argument wasn't found, the argument after the one given if the argument was found, or NULL again if the argument was found as the last item


The documentation for this class was generated from the following files:
Generated on Tue Nov 12 17:43:50 2002 for Aria by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001