Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RepeatedCmdLineArgument Class Reference

A repeatable command line argument. More...

#include <Option.h>

Inheritance diagram for rs::cmdline::RepeatedCmdLineArgument:

Inheritance graph
[legend]
Collaboration diagram for RepeatedCmdLineArgument:

Collaboration graph
[legend]
List of all members.

Public Methods

 RepeatedCmdLineArgument (const char *name_, const char *helptext_, CmdLineArgumentPredicate isArg_, int min_occur_=1, int max_occur_=-1)
 Declare a new repeatable command line argument. More...

virtual ~RepeatedCmdLineArgument ()

Detailed Description

A repeatable command line argument.

Definition at line 290 of file Option.h.


Constructor & Destructor Documentation

RepeatedCmdLineArgument const char *    name_,
const char *    helptext_,
CmdLineArgumentPredicate    isArg_,
int    min_occur_ = 1,
int    max_occur_ = -1
[inline]
 

Declare a new repeatable command line argument.

RepeatedCmdLineArguments should be declared global.

Parameters:
name_  The name of the argument as it should be used in the helptext. (i.e. "filename" results in [<filename>]+)
helptext_  Help for this command line argument.
isArg_  user provided function returning true, if passed string is the optional argument. If the passed string is NULL the function should return true only if argument should be missing.
min_occur_  The argument has to be mentioned min_occur_ times on command line (defaults to 1)
max_occur_  The argument has to be mentioned max_occur_ times on command line (defaults to -1 = 'infinite') line.
See also:
acceptAnyArgument

Definition at line 306 of file Option.h.

virtual ~RepeatedCmdLineArgument   [inline, virtual]
 

Definition at line 311 of file Option.h.


The documentation for this class was generated from the following file:
Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen