#include <MultiArg.h>
Inheritance diagram for TCLAP::MultiArg< T >:


Public Member Functions | |
| MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, Visitor *v=NULL) | |
| Constructor. | |
| MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, CmdLineInterface &parser, Visitor *v=NULL) | |
| Constructor. | |
| MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, Visitor *v=NULL) | |
| MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, CmdLineInterface &parser, Visitor *v=NULL) | |
| Constructor. | |
| virtual bool | processArg (int *i, std::vector< std::string > &args) |
| Handles the processing of the argument. | |
| const std::vector< T > & | getValue () |
| Returns a vector of type T containing the values parsed from the command line. | |
| virtual std::string | shortID (const std::string &val="val") const |
| virtual std::string | longID (const std::string &val="val") const |
| virtual bool | isRequired () const |
| Once we've matched the first value, then the arg is no longer required. | |
| virtual bool | allowMore () |
Protected Member Functions | |
| void | _extractValue (const std::string &val) |
| Extracts the value from the string. | |
Protected Attributes | |
| std::vector< T > | _values |
| The list of values parsed from the CmdLine. | |
| std::string | _typeDesc |
| The description of type T to be used in the usage. | |
| Constraint< T > * | _constraint |
| A list of constraint on this Arg. | |
| bool | _allowMore |
Very similar to a ValueArg, except a vector of values will be returned instead of just one.
Definition at line 167 of file MultiArg.h.
|
||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 333 of file MultiArg.h. References TCLAP::Arg::_acceptsMultipleValues. |
|
||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 348 of file MultiArg.h. References TCLAP::Arg::_acceptsMultipleValues, and TCLAP::CmdLineInterface::add(). |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
|
Definition at line 368 of file MultiArg.h. References TCLAP::Arg::_acceptsMultipleValues. |
|
||||||||||||||||||||||||||||||||||||
|
Constructor.
Definition at line 383 of file MultiArg.h. References TCLAP::Arg::_acceptsMultipleValues, and TCLAP::CmdLineInterface::add(). |
Here is the call graph for this function:

|
||||||||||
|
Extracts the value from the string. Attempts to parse string as type T, if this fails an exception is thrown.
Definition at line 495 of file MultiArg.h. References TCLAP::MultiArg< T >::_constraint, TCLAP::MultiArg< T >::_values, TCLAP::MULTI_ARG_HELPER::ValueExtractor< T >::extractValue(), and TCLAP::Arg::toString(). Referenced by TCLAP::UnlabeledMultiArg< T >::processArg(), and TCLAP::MultiArg< T >::processArg(). |
Here is the call graph for this function:

|
|||||||||
|
Reimplemented from TCLAP::Arg. Definition at line 518 of file MultiArg.h. References TCLAP::MultiArg< T >::_allowMore. |
|
|||||||||
|
Returns a vector of type T containing the values parsed from the command line.
Definition at line 400 of file MultiArg.h. References TCLAP::MultiArg< T >::_values. |
|
|||||||||
|
Once we've matched the first value, then the arg is no longer required.
Reimplemented from TCLAP::Arg. Definition at line 480 of file MultiArg.h. References TCLAP::Arg::_required, and TCLAP::MultiArg< T >::_values. |
|
||||||||||
|
Used in the usage.
Reimplemented from TCLAP::Arg. Reimplemented in TCLAP::UnlabeledMultiArg< T >. Definition at line 468 of file MultiArg.h. References TCLAP::MultiArg< T >::_typeDesc. |
|
||||||||||||||||
|
Handles the processing of the argument. This re-implements the Arg version of this method to set the _value of the argument appropriately. It knows the difference between labeled and unlabeled.
Implements TCLAP::Arg. Reimplemented in TCLAP::UnlabeledMultiArg< T >. Definition at line 403 of file MultiArg.h. References TCLAP::Arg::_alreadySet, TCLAP::Arg::_checkWithVisitor(), TCLAP::MultiArg< T >::_extractValue(), TCLAP::Arg::_hasBlanks(), TCLAP::Arg::_ignoreable, TCLAP::Arg::argMatches(), TCLAP::Arg::toString(), and TCLAP::Arg::trimFlag(). |
Here is the call graph for this function:

|
||||||||||
|
Used in the usage.
Reimplemented from TCLAP::Arg. Reimplemented in TCLAP::UnlabeledMultiArg< T >. Definition at line 457 of file MultiArg.h. References TCLAP::MultiArg< T >::_typeDesc. |
|
|||||
|
Definition at line 194 of file MultiArg.h. Referenced by TCLAP::MultiArg< T >::allowMore(). |
|
|||||
|
A list of constraint on this Arg.
Definition at line 184 of file MultiArg.h. Referenced by TCLAP::MultiArg< T >::_extractValue(). |
|
|||||
|
The description of type T to be used in the usage.
Definition at line 179 of file MultiArg.h. Referenced by TCLAP::UnlabeledMultiArg< T >::longID(), TCLAP::MultiArg< T >::longID(), TCLAP::UnlabeledMultiArg< T >::shortID(), and TCLAP::MultiArg< T >::shortID(). |
|
|||||
|
The list of values parsed from the CmdLine.
Definition at line 174 of file MultiArg.h. Referenced by TCLAP::MultiArg< T >::_extractValue(), TCLAP::MultiArg< T >::getValue(), and TCLAP::MultiArg< T >::isRequired(). |
1.3.3