Template Class Constraint

Inheritance Relationships

Derived Type

Class Documentation

template<class T>
class Constraint

Defines the interaction between an argument and a constraint.

The interface that defines the interaction between the Arg and Constraint.

Subclassed by ecl::ValuesConstraint< T >

Public Functions

virtual std::string description() const = 0

Returns a description of the 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.

Parameters:

value – - The value that will be checked.

inline virtual ~Constraint()

Destructor. Silences warnings about Constraint being a base class with virtual functions but without a virtual destructor.