#include <ValuesConstraint.h>
Public Member Functions | |
virtual bool | check (const T &value) const |
virtual std::string | description () const |
virtual std::string | shortID () const |
ValuesConstraint (std::vector< T > &allowed) | |
virtual | ~ValuesConstraint () |
Public Member Functions inherited from TCLAP::Constraint< T > | |
virtual | ~Constraint () |
Protected Attributes | |
std::vector< T > | _allowed |
std::string | _typeDesc |
A Constraint that constrains the Arg to only those values specified in the constraint.
Definition at line 51 of file ValuesConstraint.h.
TCLAP::ValuesConstraint< T >::ValuesConstraint | ( | std::vector< T > & | allowed | ) |
Constructor.
allowed | - vector of allowed values. |
Definition at line 99 of file ValuesConstraint.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 65 of file ValuesConstraint.h.
|
virtual |
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 125 of file ValuesConstraint.h.
|
virtual |
Returns a description of the Constraint.
Implements TCLAP::Constraint< T >.
Definition at line 140 of file ValuesConstraint.h.
|
virtual |
Returns the short ID for the Constraint.
Implements TCLAP::Constraint< T >.
Definition at line 134 of file ValuesConstraint.h.
|
protected |
The list of valid values.
Definition at line 89 of file ValuesConstraint.h.
|
protected |
The string used to describe the allowed values of this constraint.
Definition at line 94 of file ValuesConstraint.h.