25 #ifndef TCLAP_CONSTRAINT_H 
   26 #define TCLAP_CONSTRAINT_H 
   61         virtual bool check(
const T& value) 
const =0;
 
   72             throw std::logic_error(
"Cannot create a ValueArg with a NULL constraint");
 
The interface that defines the interaction between the Arg and Constraint.
virtual std::string shortID() const =0
Returns the short ID for the Constraint.
virtual bool check(const T &value) const =0
The method used to verify that the value parsed from the command line meets the constraint.
static std::string shortID(Constraint< T > *constraint)
virtual std::string description() const =0
Returns a description of the Constraint.
virtual ~Constraint()
Destructor.