|
#define | FMI_IMPORT_NAME_CHECK 1 |
| If this configuration option is set, the model description will be checked to follow the variable naming conventions. Variables not following the convention will be logged. More...
|
|
Interaction with an FMU by means of the FMI Library starts with allocation of an fmi_import_context_t structure. This is done with a call to fmi_import_allocate_context(). The next step is detection of FMI standard used in the specific FMU. This is achieved by calling fmi_import_get_fmi_version() function. When the standard is known a standard specific function for processing model description XML should be called to create an opaque FMU structure. This is done by calling either fmi1_import_parse_xml() or fmi2_import_parse_xml(). With the FMU structure available one can proceed by loading the FMU binary (fmi1_import_create_dllfmu() or fmi2_import_create_dllfmu()). After that the code is able to interact with the FMU by means of the methonds presented in Interface to the standard FMI 1.0 "C" API and Interface to the standard FMI 2.0 "C" API.
#define FMI_IMPORT_NAME_CHECK 1 |
If this configuration option is set, the model description will be checked to follow the variable naming conventions. Variables not following the convention will be logged.
Definition at line 84 of file fmi_import_context.h.
Create fmi_import_context_t structure.
- Parameters
-
callbacks | - a pointer to the library callbacks for memory management and logging. May be NULL if defaults are utilized. |
- Returns
- A new structure if memory allocation was successful.
Free memory allocated for the library context.
- Parameters
-
Sets advanced configuration, if zero is passed default configuration is set. Currently only one non default configuration is available: FMI_IMPORT_XML_NAME_CHECK.
- Parameters
-
conf | - specifies the configuration to use |
Unzip an FMU specified by the fileName into directory dirName and parse XML to get FMI standard version.
- Parameters
-
c | - library context. |
fileName | - an FMU file name. |
dirName | - a directory name where the FMU should be unpacked |
Parse FMI 1.0 XML file found in the directory dirName.
- Parameters
-
c | - library context. |
dirName | - a directory where the FMU was unpacked and XML file is present. |
- Returns
- fmi1_import_t:: opaque object pointer
Create fmi2_import_t structure and parse the FMI 2.0 XML file found in the directory dirName.
- Parameters
-
context | - library context. |
dirPath | - a directory where the FMU was unpacked and XML file is present. |
xml_callbacks | Callbacks to use for processing of annotations (may be NULL). |
- Returns
- fmi2_import_t:: opaque object pointer