1 #ifndef fmiModelTypes_h
\r
2 #define fmiModelTypes_h
\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
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
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
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
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
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
59 You may distribute or publicly perform any modification only under the
\r
60 terms of this license.
\r
63 /* Platform (combination of machine, compiler, operating system) */
\r
64 #define fmiModelTypesPlatform "standard32"
\r
66 /* Type definitions of variables passed as arguments
\r
67 Version "standard32" means:
\r
69 fmiComponent : 32 bit pointer
\r
70 fmiValueReference: 32 bit
\r
74 fmiString : 32 bit pointer
\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
84 /* Values for fmiBoolean */
\r
88 /* Undefined value for fmiValueReference (largest unsigned int value) */
\r
89 #define fmiUndefinedValueReference (fmiValueReference)(-1)
\r