FMI Library: part of JModelica.org
fmi2_types.h
Go to the documentation of this file.
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 */
15 
16 #ifndef FMI2_TYPES_H_
17 #define FMI2_TYPES_H_
18 
33 #define fmi2Component fmi2_component_t
34 #define fmi2ComponentEnvironment fmi2_component_environment_t
35 #define fmi2FMUstate fmi2_FMU_state_t
36 #define fmi2ValueReference fmi2_value_reference_t
37 #define fmi2Real fmi2_real_t
38 #define fmi2Integer fmi2_integer_t
39 #define fmi2Boolean fmi2_boolean_t
40 #define fmi2Char fmi2_char_t
41 #define fmi2String fmi2_string_t
42 #define fmi2Byte fmi2_byte_t
43 
45 /* Standard FMI 2.0 types */
46 #ifdef fmi2TypesPlatform_h
47 #undef fmi2TypesPlatform_h
48 #endif
49 #include <FMI2/fmi2TypesPlatform.h>
50 #undef fmi2TypesPlatform_h
51 
53 static const char * fmi2_get_types_platform(void) {
54  return fmi2TypesPlatform;
55 }
56 
57 #undef fmi2TypesPlatform
58 
60 typedef enum {
61  fmi2_true=fmi2True,
62  fmi2_false=fmi2False
64 
65 #undef fmi2True
66 #undef fmi2False
67 
72 #undef fmi2Component
73 #undef fmi2ValueReference
74 #undef fmi2Real
75 #undef fmi2Integer
76 #undef fmi2Boolean
77 #undef fmi2String
78 #undef fmi2UndefinedValueReference
79 
80 #endif /* End of header file FMI2_TYPES_H_ */
fmi2_boolean_enu_t
Definition: fmi2_types.h:60
static const char * fmi2_get_types_platform(void)
Definition: fmi2_types.h:53