]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil/native/FMUSimulator/include/FMIL/Util/FMI2/fmi2_types.h
Mavenized FMIL projects.
[simantics/fmil.git] / org.simantics.fmil / native / FMUSimulator / include / FMIL / Util / FMI2 / fmi2_types.h
1 /*
2     Copyright (C) 2012 Modelon AB
3
4     This program is free software: you can redistribute it and/or modify
5     it under the terms of the BSD style license.
6
7      This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10     FMILIB_License.txt file for more details.
11
12     You should have received a copy of the FMILIB_License.txt file
13     along with this program. If not, contact Modelon AB <http://www.modelon.com>.
14 */\r
15 \r
16 #ifndef FMI2_TYPES_H_\r
17 #define FMI2_TYPES_H_\r
18 /** \file fmi2_types.h\r
19         Transformation of the standard FMI type names into fmi2_ prefixed.\r
20 */\r
21 /**\r
22         \addtogroup jm_utils\r
23         @{\r
24                 \addtogroup fmi2_utils\r
25         @}\r
26 */\r
27 \r
28 /**     \addtogroup fmi2_utils Functions and types supporting FMI 2.0 processing.\r
29         @{\r
30 */\r
31 /** \name Renaming of typedefs \r
32 @{*/\r
33 #define fmi2Component fmi2_component_t\r
34 #define fmi2ComponentEnvironment fmi2_component_environment_t\r
35 #define fmi2FMUstate fmi2_FMU_state_t\r
36 #define fmi2ValueReference fmi2_value_reference_t\r
37 #define fmi2Real fmi2_real_t\r
38 #define fmi2Integer fmi2_integer_t\r
39 #define fmi2Boolean fmi2_boolean_t\r
40 #define fmi2Char fmi2_char_t\r
41 #define fmi2String fmi2_string_t\r
42 #define fmi2Byte fmi2_byte_t\r
43 \r
44 /** @}*/\r
45 /* Standard FMI 2.0 types */\r
46 #ifdef fmi2TypesPlatform_h\r
47 #undef fmi2TypesPlatform_h\r
48 #endif\r
49 #include <FMI2/fmi2TypesPlatform.h>\r
50 #undef fmi2TypesPlatform_h\r
51 \r
52 /** FMI platform name constant string.*/\r
53 static const char * fmi2_get_types_platform(void) {\r
54         return fmi2TypesPlatform;\r
55 }\r
56 \r
57 #undef fmi2TypesPlatform\r
58 \r
59 /** FMI boolean constants.*/\r
60 typedef enum {\r
61         fmi2_true=fmi2True,\r
62         fmi2_false=fmi2False\r
63 } fmi2_boolean_enu_t;\r
64 \r
65 #undef fmi2True\r
66 #undef fmi2False\r
67 \r
68 /**     \r
69         @}\r
70 */\r
71 \r
72 #undef fmi2Component\r
73 #undef fmi2ValueReference\r
74 #undef fmi2Real\r
75 #undef fmi2Integer\r
76 #undef fmi2Boolean\r
77 #undef fmi2String\r
78 #undef fmi2UndefinedValueReference\r
79 \r
80 #endif /* End of header file FMI2_TYPES_H_ */