|
tclap 1.6.0
|
A Constraint that constrains the Arg to only those values specified in the constraint. More...
#include <ValuesConstraint.h>


Public Member Functions | |
| ValuesConstraint (const std::vector< T > &allowed) | |
| Constructor. | |
| ~ValuesConstraint () override=default | |
| Virtual destructor. | |
| std::string | description () const override |
| Returns a description of the Constraint. | |
| std::string | shortID () const override |
| Returns the short ID for the Constraint. | |
| bool | check (const T &value) const override |
| The method used to verify that the value parsed from the command line meets the constraint. | |
Public Member Functions inherited from TCLAP::Constraint< T > | |
| virtual | ~Constraint ()=default |
| Destructor. | |
Protected Attributes | |
| std::vector< T > | _allowed |
| The list of valid values. | |
| std::string | _typeDesc |
| The string used to describe the allowed values of this constraint. | |
Additional Inherited Members | |
Static Public Member Functions inherited from TCLAP::Constraint< T > | |
| static std::string | shortID (const Constraint< T > *constraint) |
A Constraint that constrains the Arg to only those values specified in the constraint.
Definition at line 51 of file ValuesConstraint.h.
|
explicit |
Constructor.
| allowed | - vector of allowed values. |
Definition at line 95 of file ValuesConstraint.h.
|
overridedefault |
Virtual destructor.
|
overridevirtual |
The method used to verify that the value parsed from the command line meets the constraint.
| value | - The value that will be checked. |
Implements TCLAP::Constraint< T >.
Definition at line 110 of file ValuesConstraint.h.
|
overridevirtual |
Returns a description of the Constraint.
Implements TCLAP::Constraint< T >.
Definition at line 120 of file ValuesConstraint.h.
|
overridevirtual |
Returns the short ID for the Constraint.
Implements TCLAP::Constraint< T >.
Definition at line 115 of file ValuesConstraint.h.
|
protected |
The list of valid values.
Definition at line 86 of file ValuesConstraint.h.
|
protected |
The string used to describe the allowed values of this constraint.
Definition at line 91 of file ValuesConstraint.h.