|
nuXmv API 126f6942
API for nuXmv
|
Functions for working environment. More...
Macros | |
| #define | NUXMV_VALID_ENV(env) ((env).repr != NULL) |
| Valid environment. | |
Functions | |
| nuxmv_env | nuxmv_create_env (void) |
| Create a new environment. | |
| nuxmv_status_code | nuxmv_destroy_env (nuxmv_env env) |
| Destroy an environment. | |
| const char * | nuxmv_env_get_last_error_message (nuxmv_env env) |
| Get the last error message and clear it. | |
| nuxmv_status_code | nuxmv_env_set_options (nuxmv_env env, const nuxmv_opt *opts, size_t opt_num) |
| Set a list of options for the environment. | |
| int | nuxmv_env_get_option_num (nuxmv_env env) |
| Get the number of options for the environment. | |
| nuxmv_opt | nuxmv_env_get_option (nuxmv_env env, int opt_idx) |
| Get an option of the environment. | |
Functions for working environment.
| #define NUXMV_VALID_ENV | ( | env | ) | ((env).repr != NULL) |
Valid environment.
This macro checks whether env is a valid nuxmv_env.
| [in] | env | The environment to inspect. |
true if the option is valid, false otherwise. | nuxmv_env nuxmv_create_env | ( | void | ) |
Create a new environment.
When no longer needed, the environment shall be freed using nuxmv_destroy_env().
false.Requirements: 20.001
| nuxmv_status_code nuxmv_destroy_env | ( | nuxmv_env | env | ) |
Destroy an environment.
Destroying an environment will deallocate the memory of all the objects created inside it. It is an error to access an object created by an environment which has been destroyed (the precise behaviour is undefined).
| [in] | env | The environment to destroy. |
NUXMV_SUCCESS if the environment was destroyed, NUXMV_FAILURE in case of error.Requirements: 20.001
| const char * nuxmv_env_get_last_error_message | ( | nuxmv_env | env | ) |
Get the last error message and clear it.
| [in] | env | The environment to inspect. |
Requirements: 20.003, 90.006.01
Get an option of the environment.
| [in] | env | The environment to inspect. |
| [in] | opt_idx | The index of the option counting from 0. |
false.Requirements: 09.002
| int nuxmv_env_get_option_num | ( | nuxmv_env | env | ) |
Get the number of options for the environment.
| [in] | env | The environment to inspect. |
-1 in case of error.Requirements: 09.002
| nuxmv_status_code nuxmv_env_set_options | ( | nuxmv_env | env, |
| const nuxmv_opt * | opts, | ||
| size_t | opt_num | ||
| ) |
Set a list of options for the environment.
| [in] | env | The environment to modify. |
| [in] | opts | A list of options to set. |
| [in] | opt_num | The number of options in the list. |
NUXMV_SUCCESS if options were set, NUXMV_FAILURE in case of error.Requirements: 09.002