]> git.mxchange.org Git - flightgear.git/blob - src/Main/fg_init.hxx
Update for changed SGPath::realpath signature
[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 #include <simgear/misc/sg_path.hxx>
30
31 // forward decls
32 class SGPropertyNode;
33 class SGPath;
34
35 // Return the current base package version
36 std::string fgBasePackageVersion(const SGPath& path);
37
38 bool fgInitHome();
39
40 // Read in configuration (file and command line)
41 int fgInitConfig ( int argc, char **argv, bool reinit );
42
43 void fgInitAircraftPaths(bool reinit);
44
45 int fgInitAircraft(bool reinit);
46
47 // log various settings / configuration state
48 void fgOutputSettings();
49
50 // Initialize the localization
51 SGPropertyNode *fgInitLocale(const char *language);
52
53 // Init navaids and waypoints
54 bool fgInitNav ();
55
56
57 // General house keeping initializations
58 bool fgInitGeneral ();
59
60
61 // Create all the subsystems needed by the sim
62 void fgCreateSubsystems(bool duringReset);
63
64 // called after the subsystems have been bound and initialised,
65 // to peform final init
66 void fgPostInitSubsystems();
67
68 // Re-position: when only location is changing, we can do considerably
69 // less work than a full re-init.
70 void fgStartReposition();
71
72 void fgStartNewReset();
73
74 // setup the package system including the global root
75 void fgInitPackageRoot();
76
77 #endif // _FG_INIT_HXX
78
79
80