Go to the source code of this file.
◆ anonymous enum
Enumeration of the possible project function to load.
This value is compared to the 'MbsLoadOptions::load_symb_user'
- LOAD_NONE : Do not load any project-secific function.
- LOAD_SYMBOLIC : Only load the symbolic functions.
- LOAD_SYMBOLIC : Only load the symbolic functions.
- LOAD_ALL : Load the symbolic and the user functions.
Default: ALL
Enumerator |
---|
LOAD_NONE | |
LOAD_SYMBOLIC | |
LOAD_ALL | |
◆ mbs_bind_user_model()
Bind the user model data to the MbsInfos memory pointers.
◆ mbs_delete_data()
void mbs_delete_data |
( |
MbsData * |
s | ) |
|
Free the memory used by the given MbsData structure.
- Parameters
-
s | the structure to be freed. |
◆ mbs_delete_load_options()
Free the memory associated to the given MbsLoadOptions.
! For the moment, does not free the char* fields !
- Parameters
-
◆ mbs_delete_loader()
Free the memory associated to the given MbsLoader.
- Parameters
-
◆ mbs_info_structurer()
void mbs_info_structurer |
( |
MbsInfos * |
mbs_infos | ) |
|
◆ mbs_info_to_data()
Retrieve a MbsData structure from the given MbsInfos.
- Parameters
-
[in] | mbs_infos | the MbsInfos structure already filled to be used to fill the MbsData structure. |
[in,out] | s | the MbsData structure that will be completed according to the MbsInfos structure. |
◆ mbs_load()
MbsData* mbs_load |
( |
const char * |
mbs_filename, |
|
|
const char * |
build_name |
|
) |
| |
Load the data from the given *.mbs file (data in the xml format).
The memory of a new MbsData is allocated.
- Parameters
-
mbs_filename | path to the file to load including filename and extension. |
build_path,path | to the build folder (including build) of MBsysC libraries |
◆ mbs_load_user_model()
Load the user model data.
◆ mbs_load_with_loader()
MbsData* mbs_load_with_loader |
( |
const char * |
mbs_filename, |
|
|
const char * |
build_path, |
|
|
MbsLoader * |
mbs_loader |
|
) |
| |
Load the data from the given MbsInfos.
The memory of a new MbsData is allocated. Options on paths (symbolic and/or user librairies) can be passed.
- Parameters
-
mbs_filename | path to the file to load including filename and extension. |
build_path | path to the build folder (including build) of MBsysC libraries |
mbs_load_opts | options for loading (mainly a collection of paths and names) |
- Returns
- A fully loaded MbsData strucutre or NULL ptr in case of failure.
◆ mbs_new_data()
Allocate an MbsData structure with default field values (NULL, 0).
- Returns
- the allocated structure.
◆ mbs_new_load_options()
Create a new structure with options for the loading.
The memory of a new MbsLoadOptions is allocated. The options mainly consist in char variables that can contain name and path for separate libraries.
◆ mbs_new_loader()
Create a new structure loader used for the loading with options.
The memory of a new MbsLoader and its options is allocated. The memory for the "mds" field is not allocated (left to the user if needed)
◆ mbs_set_symb_fun_null()
void mbs_set_symb_fun_null |
( |
MbsData * |
s | ) |
|
Set the pointer to project symbolic functions to NULL.
- Parameters
-
[in,out] | fct | the MbsData instance containing the pointer of functions |
◆ mbs_set_user_fun_null()
void mbs_set_user_fun_null |
( |
MbsData * |
s | ) |
|
Set the pointer to project user functions to NULL.
- Parameters
-
[in,out] | fct | the MbsData instance containing the pointer of functions |