]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/ThirdParty/FMI/standard32/FMI1/fmiPlatformTypes.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 / fmiPlatformTypes.h
1 #ifndef fmiPlatformTypes_h\r
2 #define fmiPlatformTypes_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    - October 2010: First public Version\r
11 \r
12 \r
13    Copyright © 2008-2010, MODELISAR consortium. All rights reserved.\r
14    This file is licensed by the copyright holders under the BSD License\r
15    (http://www.opensource.org/licenses/bsd-license.html):\r
16 \r
17 \r
18    ----------------------------------------------------------------------------\r
19    Redistribution and use in source and binary forms, with or without\r
20    modification, are permitted provided that the following conditions are met:\r
21 \r
22    - Redistributions of source code must retain the above copyright notice,\r
23      this list of conditions and the following disclaimer.\r
24    - Redistributions in binary form must reproduce the above copyright notice,\r
25      this list of conditions and the following disclaimer in the documentation\r
26      and/or other materials provided with the distribution.\r
27    - Neither the name of the copyright holders nor the names of its\r
28      contributors may be used to endorse or promote products derived\r
29      from this software without specific prior written permission.\r
30 \r
31    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
32    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
33    TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
34    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR\r
35    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
36    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
37    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;\r
38    OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\r
39    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR\r
40    OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\r
41    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
42    ----------------------------------------------------------------------------\r
43 */\r
44 \r
45 /* Platform (combination of machine, compiler, operating system) */\r
46 #define fmiPlatform "standard32"\r
47 \r
48 /* Type definitions of variables passed as arguments\r
49    Version "standard32" means:\r
50 \r
51    fmiComponent     : 32 bit pointer\r
52    fmiValueReference: 32 bit\r
53    fmiReal          : 64 bit\r
54    fmiInteger       : 32 bit\r
55    fmiBoolean       :  8 bit\r
56    fmiString        : 32 bit pointer\r
57 \r
58 */\r
59    typedef void*        fmiComponent;\r
60    typedef unsigned int fmiValueReference;\r
61    typedef double       fmiReal   ;\r
62    typedef int          fmiInteger;\r
63    typedef char         fmiBoolean;\r
64    typedef const char*  fmiString ;\r
65 \r
66 /* Values for fmiBoolean  */\r
67 #define fmiTrue  1\r
68 #define fmiFalse 0\r
69 \r
70 /* Undefined value for fmiValueReference (largest unsigned int value) */\r
71 #define fmiUndefinedValueReference (fmiValueReference)(-1)\r
72 \r
73 #endif\r