1998-04-25 15:11:10 +00:00
|
|
|
//
|
|
|
|
// fg_init.hxx -- Flight Gear top level initialization routines
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started August 1997.
|
|
|
|
//
|
|
|
|
// Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
//
|
|
|
|
// $Id$
|
1997-08-23 01:46:20 +00:00
|
|
|
|
|
|
|
|
1998-04-25 15:11:10 +00:00
|
|
|
#ifndef _FG_INIT_HXX
|
|
|
|
#define _FG_INIT_HXX
|
1997-08-23 01:46:20 +00:00
|
|
|
|
|
|
|
|
1998-04-22 13:25:39 +00:00
|
|
|
#ifndef __cplusplus
|
|
|
|
# error This library requires C++
|
1998-04-21 17:02:27 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2001-07-16 19:17:58 +00:00
|
|
|
#ifdef HAVE_CONFIG
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <simgear/compiler.h>
|
2002-02-06 23:31:33 +00:00
|
|
|
#include <simgear/timing/sg_time.hxx>
|
2001-07-16 19:17:58 +00:00
|
|
|
|
|
|
|
#include STL_STRING
|
|
|
|
|
2000-10-12 01:08:09 +00:00
|
|
|
#include <Airports/simple.hxx>
|
|
|
|
|
2001-07-16 19:17:58 +00:00
|
|
|
SG_USING_STD(string);
|
|
|
|
|
2000-10-12 01:08:09 +00:00
|
|
|
|
2002-11-16 20:17:11 +00:00
|
|
|
// Read in configuration (files and command line optoins) but only set
|
|
|
|
// fg_root
|
2000-10-04 22:52:34 +00:00
|
|
|
bool fgInitFGRoot ( int argc, char **argv );
|
|
|
|
|
|
|
|
|
2001-07-16 19:17:58 +00:00
|
|
|
// Return the current base package version
|
|
|
|
string fgBasePackageVersion();
|
|
|
|
|
|
|
|
|
1999-06-18 03:42:54 +00:00
|
|
|
// Read in configuration (file and command line)
|
|
|
|
bool fgInitConfig ( int argc, char **argv );
|
|
|
|
|
|
|
|
|
2002-10-07 15:45:00 +00:00
|
|
|
// Initialize the localization
|
|
|
|
SGPropertyNode *fgInitLocale(const char *language);
|
|
|
|
|
|
|
|
|
1998-02-12 21:58:27 +00:00
|
|
|
// General house keeping initializations
|
1999-06-18 03:42:54 +00:00
|
|
|
bool fgInitGeneral ( void );
|
1997-08-23 01:46:20 +00:00
|
|
|
|
1998-04-25 15:11:10 +00:00
|
|
|
|
1998-02-12 21:58:27 +00:00
|
|
|
// This is the top level init routine which calls all the other
|
|
|
|
// initialization routines. If you are adding a subsystem to flight
|
|
|
|
// gear, its initialization call should located in this routine.
|
1999-06-18 03:42:54 +00:00
|
|
|
bool fgInitSubsystems( void );
|
1997-08-23 01:46:20 +00:00
|
|
|
|
|
|
|
|
1999-04-27 15:52:32 +00:00
|
|
|
// Reset
|
|
|
|
void fgReInitSubsystems( void );
|
|
|
|
|
|
|
|
|
2000-10-12 01:08:09 +00:00
|
|
|
// find basic airport location info from airport database
|
|
|
|
bool fgFindAirportID( const string& id, FGAirport *a );
|
|
|
|
|
2002-11-16 21:34:51 +00:00
|
|
|
// Set the initial position based on presets (or defaults)
|
|
|
|
bool fgInitPosition();
|
2002-02-20 16:56:44 +00:00
|
|
|
|
2002-02-06 23:31:33 +00:00
|
|
|
// Initialize various time dependent systems (lighting, sun position, etc.)
|
|
|
|
// returns a new instance of the SGTime class
|
|
|
|
SGTime *fgInitTime();
|
2000-07-21 22:54:14 +00:00
|
|
|
|
2000-10-19 21:24:43 +00:00
|
|
|
#endif // _FG_INIT_HXX
|
1997-08-23 01:46:20 +00:00
|
|
|
|
|
|
|
|
2002-04-06 17:23:18 +00:00
|
|
|
|