tclap 1.6.0
Public Member Functions | List of all members
TCLAP::StandaloneArgs Class Reference

#include <CmdLine.h>

Inheritance diagram for TCLAP::StandaloneArgs:
Inheritance graph
[legend]
Collaboration diagram for TCLAP::StandaloneArgs:
Collaboration graph
[legend]

Public Member Functions

 StandaloneArgs ()=default
 
ArgContainer & add (Arg *arg) override
 Add an argument to this arg group.
 
bool showAsGroup () const override
 If arguments in this group should show up as grouped in help.
 
- Public Member Functions inherited from TCLAP::AnyOf
 AnyOf ()=default
 
 AnyOf (CmdLineInterface &parser)
 
bool validate () override
 Validates that the constraints of the ArgGroup are satisfied.
 
bool isExclusive () const override
 Returns true if this argument group is exclusive.
 
bool isRequired () const override
 Returns true if this argument group is required.
 
- Public Member Functions inherited from TCLAP::ArgGroup
 ~ArgGroup () override=default
 
ArgContainer & add (Arg &arg) override
 Add an argument to this arg group.
 
void setParser (CmdLineInterface &parser)
 Used by the parser to connect itself to this arg group.
 
const std::string getName () const
 Returns the argument group's name.
 
iterator begin () noexcept
 
iterator end () noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
 ArgGroup (const ArgGroup &)=delete
 
ArgGroup & operator= (const ArgGroup &)=delete
 
- Public Member Functions inherited from TCLAP::ArgContainer
virtual ~ArgContainer ()=default
 

Additional Inherited Members

- Public Types inherited from TCLAP::ArgGroup
using Container = std::list< Arg * >
 
using iterator = Container::iterator
 
using const_iterator = Container::const_iterator
 
- Protected Member Functions inherited from TCLAP::ArgGroup
 ArgGroup ()
 
- Protected Attributes inherited from TCLAP::ArgGroup
CmdLineInterface * _parser
 
Container _args
 

Detailed Description

Definition at line 61 of file CmdLine.h.

Constructor & Destructor Documentation

◆ StandaloneArgs()

TCLAP::StandaloneArgs::StandaloneArgs ( )
default

Member Function Documentation

◆ add()

ArgContainer & TCLAP::StandaloneArgs::add ( Arg *  arg)
inlineoverridevirtual

Add an argument to this arg group.

Reimplemented from TCLAP::ArgGroup.

Definition at line 65 of file CmdLine.h.

References TCLAP::ArgGroup::_args, TCLAP::Arg::conflictsWith(), and TCLAP::Arg::longID().

Here is the call graph for this function:

◆ showAsGroup()

bool TCLAP::StandaloneArgs::showAsGroup ( ) const
inlineoverridevirtual

If arguments in this group should show up as grouped in help.

Reimplemented from TCLAP::ArgGroup.

Definition at line 79 of file CmdLine.h.


The documentation for this class was generated from the following file: