2 Copyright (C) 2012 Modelon AB
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the BSD style license.
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.
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>.
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
22 \addtogroup jm_utils
\r
24 \addtogroup fmi2_utils
\r
28 /** \addtogroup fmi2_utils Functions and types supporting FMI 2.0 processing.
\r
31 /** \name Renaming of typedefs
\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
45 /* Standard FMI 2.0 types */
\r
46 #ifdef fmi2TypesPlatform_h
\r
47 #undef fmi2TypesPlatform_h
\r
49 #include <FMI2/fmi2TypesPlatform.h>
\r
50 #undef fmi2TypesPlatform_h
\r
52 /** FMI platform name constant string.*/
\r
53 static const char * fmi2_get_types_platform(void) {
\r
54 return fmi2TypesPlatform;
\r
57 #undef fmi2TypesPlatform
\r
59 /** FMI boolean constants.*/
\r
62 fmi2_false=fmi2False
\r
63 } fmi2_boolean_enu_t;
\r
72 #undef fmi2Component
\r
73 #undef fmi2ValueReference
\r
78 #undef fmi2UndefinedValueReference
\r
80 #endif /* End of header file FMI2_TYPES_H_ */