]> git.mxchange.org Git - flightgear.git/blob - src/Main/fg_init.hxx
Fix my mailing address by replacing it with my web page.
[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., 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 #ifdef HAVE_CONFIG
35 #  include <config.h>
36 #endif
37
38 #include <simgear/compiler.h>
39 #include <simgear/timing/sg_time.hxx>
40
41 #include STL_STRING
42
43 #include <Airports/simple.hxx>
44
45 SG_USING_STD(string);
46
47
48 // Read in configuration (files and command line optoins) but only set
49 // fg_root
50 bool fgInitFGRoot ( int argc, char **argv );
51
52
53 // Return the current base package version
54 string fgBasePackageVersion();
55
56
57 // Read in configuration (file and command line)
58 bool fgInitConfig ( int argc, char **argv );
59
60
61 // Initialize the localization
62 SGPropertyNode *fgInitLocale(const char *language);
63
64
65 // Init navaids and waypoints
66 bool fgInitNav ();
67
68
69 // General house keeping initializations
70 bool fgInitGeneral ();
71
72
73 // This is the top level init routine which calls all the other
74 // initialization routines.  If you are adding a subsystem to flight
75 // gear, its initialization call should located in this routine.
76 bool fgInitSubsystems();
77
78
79 // Reset
80 void fgReInitSubsystems();
81
82
83 // find basic airport location info from airport database
84 bool fgFindAirportID( const string& id, FGAirport *a );
85
86 // Set the initial position based on presets (or defaults)
87 bool fgInitPosition();
88
89 // Initialize various time dependent systems (lighting, sun position, etc.)
90 // returns a new instance of the SGTime class
91 SGTime *fgInitTime();
92
93 // set up a time offset (aka warp) if one is specified
94 void fgInitTimeOffset();
95
96
97 #endif // _FG_INIT_HXX
98
99
100