tclap
1.4.0
|
Implements common functionality for exclusive argument groups. More...
#include <ArgGroup.h>
Public Member Functions | |
bool | validate () |
Validates that the constraints of the ArgGroup are satisfied. More... | |
bool | isExclusive () const |
Returns true if this argument group is exclusive. More... | |
ArgContainer & | add (Arg &arg) |
Add an argument to this arg group. More... | |
ArgContainer & | add (Arg *arg) |
Add an argument to this arg group. More... | |
![]() | |
virtual | ~ArgGroup () |
virtual bool | isRequired () const =0 |
Returns true if this argument group is required. More... | |
void | setParser (CmdLineInterface &parser) |
Used by the parser to connect itself to this arg group. More... | |
virtual bool | showAsGroup () const |
If arguments in this group should show up as grouped in help. More... | |
const std::string | getName () const |
Returns the argument group's name. More... | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
![]() | |
virtual | ~ArgContainer () |
Protected Member Functions | |
ExclusiveArgGroup () | |
ExclusiveArgGroup (CmdLineInterface &parser) | |
![]() | |
ArgGroup () | |
Additional Inherited Members | |
![]() | |
typedef std::list< Arg * > | Container |
typedef Container::iterator | iterator |
typedef Container::const_iterator | const_iterator |
![]() | |
CmdLineInterface * | _parser |
Container | _args |
Implements common functionality for exclusive argument groups.
Definition at line 132 of file ArgGroup.h.
|
inlineprotected |
Definition at line 149 of file ArgGroup.h.
|
inlineexplicitprotected |
Definition at line 150 of file ArgGroup.h.
References TCLAP::CmdLineInterface::add().
|
inlinevirtual |
Add an argument to this arg group.
Reimplemented from TCLAP::ArgGroup.
Definition at line 136 of file ArgGroup.h.
References add().
Referenced by add(), and TCLAP::CmdLine::xorAdd().
|
inlinevirtual |
Add an argument to this arg group.
Reimplemented from TCLAP::ArgGroup.
Definition at line 137 of file ArgGroup.h.
References TCLAP::ArgGroup::add(), TCLAP::Arg::isRequired(), and TCLAP::Arg::longID().
|
inlinevirtual |
Returns true if this argument group is exclusive.
Implements TCLAP::ArgGroup.
Definition at line 135 of file ArgGroup.h.
|
inlinevirtual |
Validates that the constraints of the ArgGroup are satisfied.
Implements TCLAP::ArgGroup.
Definition at line 208 of file ArgGroup.h.
References TCLAP::ArgGroup::begin(), TCLAP::ArgGroup::end(), and TCLAP::ArgGroup::isRequired().