]> git.mxchange.org Git - flightgear.git/blob - JSBsim/FGModel.h
Added initial support for native SGI compilers.
[flightgear.git] / JSBsim / FGModel.h
1 /*******************************************************************************
2
3  Header:       FGModel.h
4  Author:       Jon Berndt
5  Date started: 11/21/98
6
7  ------------- Copyright (C) 1999  Jon S. Berndt (jsb@hal-pc.org) -------------
8
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17  details.
18
19  You should have received a copy of the GNU General Public License along with
20  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21  Place - Suite 330, Boston, MA  02111-1307, USA.
22
23  Further information about the GNU General Public License can also be found on
24  the world wide web at http://www.gnu.org.
25
26 HISTORY
27 --------------------------------------------------------------------------------
28 11/22/98   JSB   Created
29
30 ********************************************************************************
31 SENTRY
32 *******************************************************************************/
33
34 #ifndef FGMODEL_H
35 #define FGMODEL_H
36
37 /*******************************************************************************
38 INCLUDES
39 *******************************************************************************/
40
41 #include "FGDefs.h"
42
43 #ifdef FGFS
44 #  include <Include/compiler.h>
45 #  include STL_STRING
46 #  ifdef FG_HAVE_STD_INCLUDES
47 #    include <cstring>
48 #    include <iostream>
49 #  else
50 #    include <string.h>
51 #    include <iostream.h>
52 #  endif
53    FG_USING_STD(string);
54 #  ifdef FG_HAVE_NATIVE_SGI_COMPILERS
55      FG_USING_NAMESPACE(std);
56 #  endif
57 #else
58 #  include <string>
59 #  include <cstring>
60 #  include <iostream>
61 #endif
62
63
64 /*******************************************************************************
65 DEFINES
66 *******************************************************************************/
67
68 /*******************************************************************************
69 CLASS DECLARATION
70 *******************************************************************************/
71
72 class FGFDMExec;
73 class FGState;
74 class FGAtmosphere;
75 class FGFCS;
76 class FGAircraft;
77 class FGTranslation;
78 class FGRotation;
79 class FGPosition;
80 class FGAuxiliary;
81 class FGOutput;
82
83 class FGModel
84 {
85 public:
86   FGModel(FGFDMExec*);
87   ~FGModel(void);
88
89   FGModel* NextModel;
90   string Name;
91   virtual bool Run(void);
92   virtual bool InitModel(void);
93   void SetRate(int tt) {rate = tt;};
94
95 protected:
96   int exe_ctr;
97   int rate;
98   
99   FGFDMExec*      FDMExec;
100   FGState*        State;
101   FGAtmosphere*   Atmosphere;
102   FGFCS*          FCS;
103   FGAircraft*     Aircraft;
104   FGTranslation*  Translation;
105   FGRotation*     Rotation;
106   FGPosition*     Position;
107   FGAuxiliary*    Auxiliary;
108   FGOutput*       Output;
109
110 private:
111 };
112
113 /******************************************************************************/
114 #endif