mustBeA(var, classNames)
mustBeA(var, classNames, argPosition)
C++: void mustBeA(const ArrayOfVector& args, const wstringVector &classNames, int argPosition)
| Parameter | Description |
|---|---|
| var | a variable. |
| classNames | a variable: name of data type or class. |
| argPosition | a positive integer value: Position of input argument. |
mustBeA checks that input value comes from one of specified classes.
A value passes when its class, one of its superclasses, or one of the categories numeric, float and integer is listed in classNames (same rules as isa).
mustBeA(1, 'double')
mustBeA([], ["double", "single"])
| Version | Description |
|---|---|
| 1.0.0 | initial version |
| 2.0.0 | superclasses and numeric, float, integer categories accepted. |