XPRMgetnextdsoconst
XPRMgetnextdsoconst |
Purpose
Synopsis
void *XPRMgetnextdsoconst(XPRMdsolib dso, void *ref, const char **name, int *type, XPRMalltypes *value);
Arguments
dso
|
Reference to a dynamic shared object loaded by Mosel
|
ref
|
Reference pointer or
NULL
|
name
|
Returned name of the constant
|
type
|
Returned type of the constant
|
value
|
Returned value of the constant
|
Return value
Reference pointer for the next call to
XPRMgetnextdsoconst.
Further information
1. This function returns the next constant defined by the given module. The second parameter is used to store the current location in the table of constants; if this parameter is
NULL, the first constant of the table is returned. This function returns
NULL if it is called with the reference to the last constant defined by the given module. Otherwise, the returned value can be used as the input parameter
ref to get the following constant and so on. The returned information about type and value of the constant can be decoded in the same way as for the model identifiers (see
XPRMfindident).
2. If parameters
ref and
name are
NULL the function returns
NULL and stores in
value the total number of constants defined by the module.
Related topics