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

OptionalCmdLineArgument Class Reference

An optional and repeatable command line argument. More...

#include <Option.h>

Inheritance diagram for rs::cmdline::OptionalCmdLineArgument:

Inheritance graph
[legend]
Collaboration diagram for OptionalCmdLineArgument:

Collaboration graph
[legend]
List of all members.

Public Methods

 OptionalCmdLineArgument (const char *name_, const char *helptext_, CmdLineArgumentPredicate isArg_=acceptAnyArgument, int max_occur_=1)
 Declare a optional CmdLineArgument. More...

virtual ~OptionalCmdLineArgument ()

Detailed Description

An optional and repeatable command line argument.

Definition at line 264 of file Option.h.


Constructor & Destructor Documentation

OptionalCmdLineArgument const char *    name_,
const char *    helptext_,
CmdLineArgumentPredicate    isArg_ = acceptAnyArgument,
int    max_occur_ = 1
[inline]
 

Declare a optional CmdLineArgument.

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_  test if found argument is the optional argument Default: acceptAnyArgument(), which can be used to accept every argument which is present on the command line.
max_occur_  maximum repeat count for this type of argument (defaults to 1). set to -1 to allow 'infinite' arguments.

Definition at line 279 of file Option.h.

virtual ~OptionalCmdLineArgument   [inline, virtual]
 

Definition at line 283 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