24 #ifndef TCLAP_CONSTRAINT_H 25 #define TCLAP_CONSTRAINT_H 51 virtual std::string
shortID()
const = 0;
58 virtual bool check(
const T &value)
const = 0;
69 throw std::logic_error(
70 "Cannot create a ValueArg with a NULL constraint");
77 #endif // TCLAP_CONSTRAINT_H 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.