26 #ifndef TCLAP_VALUESCONSTRAINT_H 
   27 #define TCLAP_VALUESCONSTRAINT_H 
   69         virtual std::string 
shortID() 
const;
 
   76         virtual bool check(
const T& value) 
const;
 
   97     for ( 
unsigned int i = 0; i < 
_allowed.size(); i++ )
 
  102         std::string temp( os.str() ); 
 
  113     if ( std::find(_allowed.begin(),_allowed.end(),val) == _allowed.end() )
 
The interface that defines the interaction between the Arg and Constraint.
A Constraint that constrains the Arg to only those values specified in the constraint.
ValuesConstraint(std::vector< T >const &allowed)
Constructor.
std::string _typeDesc
The string used to describe the allowed values of this constraint.
virtual bool check(const T &value) const
The method used to verify that the value parsed from the command line meets the constraint.
virtual std::string description() const
Returns a description of the Constraint.
virtual ~ValuesConstraint()
Virtual destructor.
std::vector< T > _allowed
The list of valid values.
virtual std::string shortID() const
Returns the short ID for the Constraint.
std::ostringstream ostringstream