]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/Test/FMI1/fmu_dummy/fmu1_model_defines.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / Test / FMI1 / fmu_dummy / fmu1_model_defines.h
diff --git a/org.simantics.fmil.core/native/FMILibrary/Test/FMI1/fmu_dummy/fmu1_model_defines.h b/org.simantics.fmil.core/native/FMILibrary/Test/FMI1/fmu_dummy/fmu1_model_defines.h
new file mode 100644 (file)
index 0000000..9fc4426
--- /dev/null
@@ -0,0 +1,70 @@
+/*\r
+Copyright (C) 2012 Modelon AB\r
+\r
+This program is free software: you can redistribute it and/or modify\r
+it under the terms of the BSD style license.
+\r
+the Free Software Foundation, version 3 of the License.\r
+\r
+This program is distributed in the hope that it will be useful,\r
+but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+FMILIB_License.txt file for more details.\r
+\r
+You should have received a copy of the FMILIB_License.txt file\r
+along with this program. If not, contact Modelon AB <http://www.modelon.com>.\r
+*/\r
+\r
+/* This header is used to generate the FMU test DLL and in the C API test that uses the DLL */\r
+#ifndef FMU1_MODEL_DEFINES_H_\r
+\r
+#define STRINGIFY(a)                   #a\r
+#define STRINGIFY2(a)                  STRINGIFY(a)\r
+#define MODEL_IDENTIFIER_STR   STRINGIFY2(MODEL_IDENTIFIER)\r
+\r
+#define BUFFER                                 1024\r
+#define MAGIC_TEST_VALUE               13.0    /* A test value for some functions  */\r
+\r
+/* BouncingBall model with redundant values */\r
+/* ValueReferences for the variables and parameters in the model */\r
+/* States */\r
+#define VAR_R_HIGHT                            0\r
+#define VAR_R_HIGHT_SPEED              1\r
+/* Real */\r
+#define VAR_R_GRATIVY                  2\r
+#define VAR_R_BOUNCE_CONF              3\r
+\r
+/* Event indicators */\r
+#define EVENT_HIGHT                            0\r
+\r
+/* Event indicators */\r
+#define VAR_S_LOGGER_TEST              0\r
+\r
+/* Sizes */\r
+#define N_STATES                               2\r
+#define N_EVENT_INDICATORS             1\r
+#define N_REAL                                 4\r
+#define N_INTEGER                              4\r
+#define N_BOOLEAN                              4\r
+#define N_STRING                               4\r
+\r
+#define N_INPUT_REAL                   2 /* CS only */\r
+#define N_INPUT_REAL_MAX_ORDER 2 /* CS only */\r
+#define N_OUTPUT_REAL                  2 /* CS only */\r
+#define N_OUTPUT_REAL_MAX_ORDER        2 /* CS only */\r
+\r
+\r
+#define FMI_VERSION                    "1.0"\r
+#if defined(FMI1_TYPES_H_)\r
+#define FMI_PLATFORM_TYPE      fmi1_get_platform()\r
+#elif defined(fmiModelTypesPlatform)\r
+#define FMI_PLATFORM_TYPE      fmiModelTypesPlatform\r
+#elif defined(fmiPlatform)\r
+#define FMI_PLATFORM_TYPE      fmiPlatform\r
+#else\r
+#error "Either fmiPlatform or fmiModelTypesPlatform must be defined"\r
+#endif\r
+#define FMI_GUID                       "123"\r
+\r
+\r
+#endif /* End of header FMU1_MODEL_DEFINES_H_ */
\ No newline at end of file