FMI Library: part of JModelica.org
fmi1_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 FMI1_TYPES_H_
17 #define FMI1_TYPES_H_
18 
33 #define fmiComponent fmi1_component_t
34 #define fmiValueReference fmi1_value_reference_t
35 #define fmiReal fmi1_real_t
36 #define fmiInteger fmi1_integer_t
37 #define fmiBoolean fmi1_boolean_t
38 #define fmiString fmi1_string_t
39 
40 /* Standard FMI 1.0 ME and CS types */
41 #ifdef fmiPlatformTypes_h
42 #undef fmiPlatformTypes_h
43 #endif
44 #include <FMI1/fmiPlatformTypes.h>
45 #undef fmiPlatformTypes_h
46 
48 static const char * fmi1_get_platform(void) {
49  return fmiPlatform;
50 }
51 
52 #undef fmiPlatform
53 
55 typedef enum {
56  fmi1_true=fmiTrue,
57  fmi1_false=fmiFalse
59 
60 #undef fmiTrue
61 #undef fmiFalse
62 
65  fmi1_undefined_value_reference = (int)fmiUndefinedValueReference
67 
72 #undef fmiComponent
73 #undef fmiValueReference
74 #undef fmiReal
75 #undef fmiInteger
76 #undef fmiBoolean
77 #undef fmiString
78 #undef fmiUndefinedValueReference
79 
80 #endif /* End of header file FMI1_TYPES_H_ */
static const char * fmi1_get_platform(void)
Definition: fmi1_types.h:48
fmi1_value_reference_enu_t
Definition: fmi1_types.h:64
fmi1_boolean_enu_t
Definition: fmi1_types.h:55