]> git.mxchange.org Git - flightgear.git/blob - src/Main/fg_init.hxx
Dump more config state at startup.
[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 SGPath;
33
34 // Return the current base package version
35 std::string fgBasePackageVersion();
36
37 void fgInitHome();
38
39 // Read in configuration (file and command line)
40 bool fgInitConfig ( int argc, char **argv );
41
42
43 // log various settings / configuration state
44 void fgOutputSettings();
45
46 // Initialize the localization
47 SGPropertyNode *fgInitLocale(const char *language);
48
49
50 // Init navaids and waypoints
51 bool fgInitNav ();
52
53
54 // General house keeping initializations
55 bool fgInitGeneral ();
56
57
58 // Create all the subsystems needed by the sim
59 void fgCreateSubsystems();
60
61 // called after the subsystems have been bound and initialised,
62 // to peform final init
63 void fgPostInitSubsystems();
64  
65 // Reset: this is what the 'reset' command (and hence, GUI) is attached to
66 void fgReInitSubsystems();
67
68 /*
69  * Search in the current directory, and in on directory deeper
70  * for <aircraft>-set.xml configuration files and show the aircaft name
71  * and the contents of the<description> tag in a sorted manner.
72  *
73  * @parampath the directory to search for configuration files
74  */
75 void fgShowAircraft(const SGPath &path);
76
77 #endif // _FG_INIT_HXX
78
79
80