Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PArgList::PArgList ( const char *  theArgPtr = NULL,
const char *  argumentSpecPtr = NULL,
BOOL  optionsBeforeParams = TRUE 

Create an argument list. An argument list is created given the standard arguments and a specification for options. The program arguments are parsed from this into options and parameters.

The specification string consists of case significant letters for each option. If the letter is followed by the ':' character then the option has an associated string. This string must be in the argument or in the next argument.

theArgPtrA string constituting the arguments
argumentSpecPtrThe specification C string for argument options. See description for details.
optionsBeforeParamsParse options only before parameters

Definition at line 1410 of file osutils.cxx.

References Parse(), and SetArgs().

  // get the program arguments
  if (theArgStr != NULL)

  // if we got an argument spec - so process them
  if (theArgumentSpec != NULL)
    Parse(theArgumentSpec, optionsBeforeParams);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index