Defines a constraint on an integral input value, such that it must be a member of a specific set of values.
class CXlValueListConstraint<INT_T> |
This class is used to restrict the values of an input value. The object contains a list of integer values. During validation, the Validate method is called. If the input does not match any of the items in the list, then a CXlRuntimeException is raised, and the function exits.
The template argument for the constraint object should match the type of the argument
being validated. For example, a input of type long
is validated by a constraint of type CXlValueListConstraint<long>
.
Header: xlvaluelistconstraint.h
CXlValueListConstraint<INT_T> Methods | xlvaluelistconstraint.h