FMI Library: part of JModelica.org
Data Structures | Functions
fmi2_import_convenience.h File Reference

Public interface to the FMI import C-library. Convenience functions. More...

#include <FMI/fmi_import_context.h>
#include <FMI2/fmi2_functions.h>

Go to the source code of this file.

Data Structures

struct  fmi2_import_model_counts_t
 Collection of counters providing model information. More...
 

Functions

FMILIB_EXPORT void fmi2_import_collect_model_counts (fmi2_import_t *fmu, fmi2_import_model_counts_t *counts)
 Collect model information by counting the number of variables with specific properties and fillinf in fmi2_import_model_counts_t struct. More...
 
FMILIB_EXPORT void fmi2_import_expand_variable_references (fmi2_import_t *fmu, const char *msgIn, char *msgOut, size_t maxMsgSize)
 Print msgIn into msgOut by expanding variable references of the form #<Type><VR># into variable names and replacing '##' with a single #. More...
 
FMILIB_EXPORT void fmi2_log_forwarding (fmi2_component_t c, fmi2_string_t instanceName, fmi2_status_t status, fmi2_string_t category, fmi2_string_t message,...)
 An implementation of FMI 2.0 logger that forwards the messages to logger function inside jm_callbacks structure. More...
 
FMILIB_EXPORT void fmi2_log_forwarding_v (fmi2_component_t c, fmi2_string_t instanceName, fmi2_status_t status, fmi2_string_t category, fmi2_string_t message, va_list args)
 An implementation of FMI 2.0 logger that forwards the messages to logger function inside jm_callbacks structure. More...
 
FMILIB_EXPORT void fmi2_default_callback_logger (fmi2_component_t c, fmi2_string_t instanceName, fmi2_status_t status, fmi2_string_t category, fmi2_string_t message,...)
 Default FMI 2.0 logger may be used when instantiating FMUs. More...
 
FMILIB_EXPORT void fmi2_import_init_logger (jm_callbacks *cb, fmi2_callback_functions_t *fmiCallbacks)
 Given fmi2_callback_functions_t logger (fmi2_logger), the jm_callbacks logger may be setup to redirect the messages to the fmi2_logger. More...
 

Detailed Description

Public interface to the FMI import C-library. Convenience functions.

The functions in this file are provided for convenience. The functionality is already available via other lower level functions.

Definition in file fmi2_import_convenience.h.