]> git.mxchange.org Git - flightgear.git/blob - src/Main/fg_init.hxx
Merge commit 'refs/merge-requests/1552' of git@gitorious.org:fg/flightgear into next
[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  - http://www.flightgear.org/~curt
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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 //
22 // $Id$
23
24
25 #ifndef _FG_INIT_HXX
26 #define _FG_INIT_HXX
27
28 #include <string>
29
30 // forward decls
31 class SGPropertyNode;
32 class SGTime;
33 class SGPath;
34
35 // Read in configuration (files and command line optoins) but only set
36 // fg_root
37 bool fgInitFGRoot ( int argc, char **argv );
38
39
40 // Return the current base package version
41 std::string fgBasePackageVersion();
42
43
44 // Read in configuration (file and command line)
45 bool fgInitConfig ( int argc, char **argv );
46
47
48 // Initialize the localization
49 SGPropertyNode *fgInitLocale(const char *language);
50
51
52 // Init navaids and waypoints
53 bool fgInitNav ();
54
55
56 // General house keeping initializations
57 bool fgInitGeneral ();
58
59
60 // This is the top level init routine which calls all the other
61 // initialization routines.  If you are adding a subsystem to flight
62 // gear, its initialization call should located in this routine.
63 bool fgInitSubsystems();
64
65
66 // Reset
67 void fgReInitSubsystems();
68
69 /**
70  * this is what the 'reset' command (and hence, GUI) is attached too
71  * it overlaps with fgReInitSubsystems quite substantially
72  */
73 void doSimulatorReset(void);
74
75 // Set the initial position based on presets (or defaults)
76 bool fgInitPosition();
77
78
79 // Listen to /sim/tower/airport-id and set tower view position accordingly
80 void fgInitTowerLocationListener();
81
82 /*
83  * Search in the current directory, and in on directory deeper
84  * for <aircraft>-set.xml configuration files and show the aircaft name
85  * and the contents of the<description> tag in a sorted manner.
86  *
87  * @parampath the directory to search for configuration files
88  */
89 void fgShowAircraft(const SGPath &path);
90
91 #endif // _FG_INIT_HXX
92
93
94