FMI Library: part of JModelica.org
Macros | Typedefs | Functions
fmi_import_context.h File Reference

Import context is the entry point to the library. It is used to initialize, unzip, get FMI version and start parsing. More...

#include <stddef.h>
#include <fmilib_config.h>
#include <JM/jm_callbacks.h>
#include <FMI2/fmi2_xml_callbacks.h>
#include <FMI/fmi_version.h>
#include <FMI1/fmi1_types.h>
#include <FMI1/fmi1_enums.h>
#include <FMI2/fmi2_types.h>
#include <FMI2/fmi2_enums.h>

Go to the source code of this file.

Macros

#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...
 

Typedefs

typedef struct fmi_xml_context_t fmi_import_context_t
 FMI version independent library context. Opaque struct returned from fmi_import_allocate_context() More...
 
typedef struct fmi1_import_t fmi1_import_t
 FMU version 1.0 object. More...
 
typedef struct fmi2_import_t fmi2_import_t
 FMU version 2.0 object. More...
 

Functions

FMILIB_EXPORT fmi_import_context_tfmi_import_allocate_context (jm_callbacks *callbacks)
 Create fmi_import_context_t structure. More...
 
FMILIB_EXPORT void fmi_import_free_context (fmi_import_context_t *c)
 Free memory allocated for the library context. More...
 
FMILIB_EXPORT void fmi_import_set_configuration (fmi_import_context_t *c, int conf)
 Sets advanced configuration, if zero is passed default configuration is set. Currently only one non default configuration is available: FMI_IMPORT_XML_NAME_CHECK. More...
 
FMILIB_EXPORT fmi_version_enu_t fmi_import_get_fmi_version (fmi_import_context_t *c, const char *fileName, const char *dirName)
 Unzip an FMU specified by the fileName into directory dirName and parse XML to get FMI standard version. More...
 
FMILIB_EXPORT fmi1_import_tfmi1_import_parse_xml (fmi_import_context_t *c, const char *dirName)
 Parse FMI 1.0 XML file found in the directory dirName. More...
 
FMILIB_EXPORT fmi2_import_tfmi2_import_parse_xml (fmi_import_context_t *context, const char *dirPath, fmi2_xml_callbacks_t *xml_callbacks)
 Create fmi2_import_t structure and parse the FMI 2.0 XML file found in the directory dirName. More...
 

Detailed Description

Import context is the entry point to the library. It is used to initialize, unzip, get FMI version and start parsing.

Definition in file fmi_import_context.h.