The parameters to pass to functions can be any of a few simple types
as defined in
<sweep/sweep_types.h>:
SWEEP_TYPE_BOOL,
SWEEP_TYPE_INT,
SWEEP_TYPE_FLOAT,
SWEEP_TYPE_STRING.
A parameter object is a union which can take any of these values. A
parameter set is defined as a pointer to a sequence of parameters.
Information about a parameter accepted by a procedure is stored in a
parameter specification object, as defined in
There are two ways of defining constraints on parameter values
accepted by the procedure; additionally, you can specify that the
values for a parameter are completely unconstrained.
- SW_PARAM_CONSTRAINED_NOT
- SW_PARAM_CONSTRAINED_LIST indicates that the parameter is
constrained to values given in a list.
- SW_PARAM_CONSTRAINED_RANGE indicates that the parameter is
constrained to a given range.
A few hints exist which Sweep can use to provide different graphical
input methods as appropriate:
- SW_PARAM_HINT_LOGARITHMIC indicates that the parameter should be
interpreted as logarithmic.
- SW_PARAM_HINT_TIME indicates that the parameter should be
interpreted as a time.
- SW_PARAM_HINT_FILENAME indicates that the parameter should be
interpreted as a valid filename on the user's system.