]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/ThirdParty/FMI/standard32/FMI1/fmiModelTypes.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / ThirdParty / FMI / standard32 / FMI1 / fmiModelTypes.h
1 #ifndef fmiModelTypes_h\r
2 #define fmiModelTypes_h\r
3 \r
4 /* Standard header file to define the argument types of the\r
5    functions of the Model Execution Interface.\r
6    This header file must be utilized both by the model and\r
7    by the simulation engine.\r
8 \r
9    Revisions:\r
10    - Jan.  4, 2010: Renamed meModelTypes_h to fmiModelTypes_h (by Mauss, QTronic)\r
11    - Dec. 21, 2009: Changed "me" to "fmi" and "meModel" to "fmiComponent"\r
12                     according to meeting on Dec. 18 (by Martin Otter, DLR)\r
13    - Dec.  6, 2009: Added meUndefinedValueReference (by Martin Otter, DLR)\r
14    - Sept. 9, 2009: Changes according to FMI-meeting on July 21:\r
15                     Changed "version" to "platform", "standard" to "standard32",\r
16                     Added a precise definition of "standard32" as comment\r
17                     (by Martin Otter, DLR)\r
18    - July 19, 2009: Added "me" as prefix to file names, added meTrue/meFalse,\r
19                     and changed meValueReferenced from int to unsigned int\r
20                     (by Martin Otter, DLR).\r
21    - March 2, 2009: Moved enums and function pointer definitions to\r
22                     ModelFunctions.h (by Martin Otter, DLR).\r
23    - Dec. 3, 2008 : First version by Martin Otter (DLR) and\r
24                     Hans Olsson (Dynasim).\r
25 \r
26 \r
27    Copyright © 2008-2010, MODELISAR consortium. All rights reserved.\r
28    This file is licensed by the copyright holders under the BSD License\r
29    (http://www.opensource.org/licenses/bsd-license.html)\r
30 \r
31    ----------------------------------------------------------------------------\r
32    Redistribution and use in source and binary forms, with or without\r
33    modification, are permitted provided that the following conditions are met:\r
34 \r
35    - Redistributions of source code must retain the above copyright notice,\r
36      this list of conditions and the following disclaimer.\r
37    - Redistributions in binary form must reproduce the above copyright notice,\r
38      this list of conditions and the following disclaimer in the documentation\r
39      and/or other materials provided with the distribution.\r
40    - Neither the name of the copyright holders nor the names of its\r
41      contributors may be used to endorse or promote products derived\r
42      from this software without specific prior written permission.\r
43 \r
44    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
45    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
46    TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
47    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR\r
48    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
49    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
50    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;\r
51    OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\r
52    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR\r
53    OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\r
54    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
55    ----------------------------------------------------------------------------\r
56 \r
57    with the extension:\r
58 \r
59    You may distribute or publicly perform any modification only under the\r
60    terms of this license.\r
61 */\r
62 \r
63 /* Platform (combination of machine, compiler, operating system) */\r
64 #define fmiModelTypesPlatform "standard32"\r
65 \r
66 /* Type definitions of variables passed as arguments\r
67    Version "standard32" means:\r
68 \r
69    fmiComponent     : 32 bit pointer\r
70    fmiValueReference: 32 bit\r
71    fmiReal          : 64 bit\r
72    fmiInteger       : 32 bit\r
73    fmiBoolean       :  8 bit\r
74    fmiString        : 32 bit pointer\r
75 \r
76 */\r
77    typedef void*        fmiComponent;\r
78    typedef unsigned int fmiValueReference;\r
79    typedef double       fmiReal   ;\r
80    typedef int          fmiInteger;\r
81    typedef char         fmiBoolean;\r
82    typedef const char*  fmiString ;\r
83 \r
84 /* Values for fmiBoolean  */\r
85 #define fmiTrue  1\r
86 #define fmiFalse 0\r
87 \r
88 /* Undefined value for fmiValueReference (largest unsigned int value) */\r
89 #define fmiUndefinedValueReference (fmiValueReference)(-1)\r
90 \r
91 #endif\r