sos_capi_script
Last update: 16.07.2025
Go to the documentation of this file.
223 DYNARDO_FMOP_API bool FMOP_script_identExists(fmop_script_handle_t context, const char * const ident);
C-API for utility functions (load/unload library, license management, error handling)
DYNARDO_FMOP_API fmop_error_t FMOP_script_createString(fmop_script_handle_t context, const char *const ident, const char *const data)
Create a string variable in the Lua script context.
DYNARDO_FMOP_API fmop_error_t FMOP_script_execute(fmop_script_handle_t context, const char *const script)
Execute Lua script code. The script engine has the ability to parse and execute:
DYNARDO_FMOP_API fmop_error_t FMOP_script_getNumber(fmop_script_handle_t context, const char *const ident, double *const data)
Retrieve the pointer to a number variable in the Lua script context. The number is is stored in doubl...
DYNARDO_FMOP_API fmop_error_t FMOP_script_createMatrix(fmop_script_handle_t context, const char *const ident, int rows, int cols, const double *const data)
Creates a tmath.Matrix in Lua script context. This version may be more efficient than creating a matr...
void * fmop_script_handle_t
Contains the data required to post-process any Field-MOP.
Definition: sos_capi_script.h:44
DYNARDO_FMOP_API fmop_error_t FMOP_script_getString(fmop_script_handle_t context, const char *const ident, const char **data)
Retrieve the char array pointer to a string variable in the Lua script context. The data can be retri...
DYNARDO_FMOP_API fmop_error_t FMOP_script_createNumber(fmop_script_handle_t context, const char *const ident, double data)
Creates a double precision floating point number variable in the Lua script context.
DYNARDO_FMOP_API fmop_script_handle_t FMOP_globalScriptEngine()
Get the handle to the global script engine from the initialized library. The routine checks if the Lu...
DYNARDO_FMOP_API bool FMOP_script_identExists(fmop_script_handle_t context, const char *const ident)
Check whether a variable exists in the Lua script context.
DYNARDO_FMOP_API fmop_error_t FMOP_script_getMatrix(fmop_script_handle_t context, const char *const ident, int *rows, int *cols, const double **data)
Retrieves the binary data of a tmath.Matrix existing in the Lua script context The matrix must be sav...