24#ifndef TCLAP_CONSTRAINT_H
25#define TCLAP_CONSTRAINT_H
58 virtual bool check(
const T &value)
const = 0;
69 throw std::logic_error(
70 "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.
static std::string shortID(const Constraint< T > *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.
virtual std::string description() const =0
Returns a description of the Constraint.
virtual ~Constraint()
Destructor.