25 #ifndef TCLAP_CONSTRAINT_H 26 #define TCLAP_CONSTRAINT_H 54 virtual std::string
shortID()
const =0;
61 virtual bool check(
const T& value)
const =0;
72 throw std::logic_error(
"Cannot create a ValueArg with a NULL constraint");
virtual std::string description() const =0
Returns a description of the Constraint.
static std::string shortID(Constraint< T > *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.
The interface that defines the interaction between the Arg and Constraint.
virtual ~Constraint()
Destructor.