Reference Manual: DSL variableInfo
From DSL
This structure contains information about a variable type, its values, etc. It is defined as follows:
struct DSL_variableInfo
{
bool useInt;
std::string id;
int handle;
DSL_dataElement missingValue;
std::vector<std::string> stateNames;
};
The field useInt defines whether the variable is discrete or continuous. The fields id and handle allow for storing the identifier of the variable (as string or/and integer) and their values are provided by the user. The missingValue field stores the value that corresponds to missing element value. Finally, if a discrete variable is categorical and has values that correspond to labels (for example: high, medium, low), the stateNames provides mapping between labels and integer values.
