#ifndef __FMI1_CS_H__ #define __FMI1_CS_H__ #ifdef __cplusplus extern "C" { #endif typedef struct { char *name; char *description; long vr; // 0 = real // 1 = integer // 2 = boolean // 3 = string // 4 = enumeration int type; // 0 = constant // 1 = parameter // 2 = discrete // 3 = continuous // 4 = unknown int variability; // 0 = input // 1 = output // 2 = internal // 3 = none // 4 = unknown int causality; } FMIL_Variable; __declspec(dllexport) void* FMI1_CS_LOAD(const char *zipFilePath, const char *unzipFolder); __declspec(dllexport) int FMI1_CS_UNLOAD(void* fmu); __declspec(dllexport) FMIL_Variable *FMI1_CS_GET_VARIABLES(void* fmu, int *count); __declspec(dllexport) int FMI1_CS_INSTANTIATE(void* fmu); __declspec(dllexport) int FMI1_CS_INITIALIZE(void* fmu); __declspec(dllexport) int FMI1_CS_STEP(void* fmu, double masterTime, double stepSize); __declspec(dllexport) double FMI1_CS_SET_REAL(void* fmu, int vr, double value); __declspec(dllexport) int FMI1_CS_GET_REALS(void* fmu, int *vrs, double *values, int count); __declspec(dllexport) double FMI1_CS_GET_REAL(void* fmu, int vr); #ifdef __cplusplus } #endif #endif