]> git.mxchange.org Git - flightgear.git/blob - src/Main/fg_init.hxx
Added a specific "altas" format for output which includes a proprietary string
[flightgear.git] / src / Main / fg_init.hxx
1 //
2 // fg_init.hxx -- Flight Gear top level initialization routines
3 //
4 // Written by Curtis Olson, started August 1997.
5 //
6 // Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 //
22 // $Id$
23
24
25 #ifndef _FG_INIT_HXX
26 #define _FG_INIT_HXX
27
28
29 #ifndef __cplusplus                                                          
30 # error This library requires C++
31 #endif                                   
32
33
34 #include <Airports/simple.hxx>
35
36
37 // Read in configuration (file and command line) and just set fg_root
38 bool fgInitFGRoot ( int argc, char **argv );
39
40
41 // Read in configuration (file and command line)
42 bool fgInitConfig ( int argc, char **argv );
43
44
45 // General house keeping initializations
46 bool fgInitGeneral ( void );
47
48
49 // This is the top level init routine which calls all the other
50 // initialization routines.  If you are adding a subsystem to flight
51 // gear, its initialization call should located in this routine.
52 bool fgInitSubsystems( void );
53
54
55 // Reset
56 void fgReInitSubsystems( void );
57
58
59 // find basic airport location info from airport database
60 bool fgFindAirportID( const string& id, FGAirport *a );
61
62 // Set pos given an airport id
63 bool fgSetPosFromAirportID( const string& id );
64
65 // Set position and heading given an airport id and heading (degrees)
66 bool fgSetPosFromAirportIDandHdg( const string& id, double tgt_hdg );
67
68
69 #endif // _FG_INIT_HXX
70
71