XLL+ Class Library (6.3)

CXlValueListConstraint<INT_T> Class

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>

Overview

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>.

Requirements

Header: xlvaluelistconstraint.h

See Also

CXlValueListConstraint<INT_T> Methods | xlvaluelistconstraint.h