FlightGear next
fg_init.hxx File Reference
#include <string>
#include <optional>
#include <simgear/misc/sg_path.hxx>

Go to the source code of this file.

Classes

struct  FGBasePackageInfo
 structure holding parsed info from <base-package>/base_package.json More...
 

Enumerations

enum  InitHomeResult { InitHomeOkay , InitHomeReadOnly , InitHomeExplicitReadOnly , InitHomeAbort }
 

Functions

std::string fgBasePackageVersion (const SGPath &path)
 
std::optional< FGBasePackageInfofgBasePackageInfo (const SGPath &path)
 Parse the base package info JSON.
 
SGPath fgHomePath ()
 
InitHomeResult fgInitHome ()
 
void fgShutdownHome ()
 
void fgDeleteLockFile ()
 
int fgInitConfig (int argc, char **argv, bool reinit)
 
void fgInitAircraftPaths (bool reinit)
 
int fgInitAircraft (bool reinit, bool didUseLauncher)
 
void fgOutputSettings ()
 
SGPropertyNode * fgInitLocale (const char *language)
 
bool fgInitNav ()
 Initialize vor/ndb/ils/fix list management and query systems (as well as simple airport db list) This is called multiple times in the case of a cache rebuild, to allow lengthy caching to take place in the background, without blocking the main/UI thread.
 
bool fgInitGeneral ()
 
void fgCreateSubsystems (bool duringReset)
 
void fgPostInitSubsystems ()
 
void fgStartReposition ()
 
void fgStartNewReset ()
 
void fgInitPackageRoot ()
 
int fgUninstall ()
 
void fgExit (int status)
 

Enumeration Type Documentation

◆ InitHomeResult

Enumerator
InitHomeOkay 
InitHomeReadOnly 
InitHomeExplicitReadOnly 
InitHomeAbort 

Definition at line 41 of file fg_init.hxx.

Function Documentation

◆ fgBasePackageInfo()

std::optional< FGBasePackageInfo > fgBasePackageInfo ( const SGPath & path)

Parse the base package info JSON.

Parameters
path
Returns
std::optional<FGBasePackageInfo>

Definition at line 174 of file fg_init.cxx.

◆ fgBasePackageVersion()

std::string fgBasePackageVersion ( const SGPath & path)

Definition at line 156 of file fg_init.cxx.

◆ fgCreateSubsystems()

void fgCreateSubsystems ( bool duringReset)

Definition at line 997 of file fg_init.cxx.

◆ fgDeleteLockFile()

void fgDeleteLockFile ( )

Definition at line 651 of file fg_init.cxx.

◆ fgExit()

void fgExit ( int status)

Definition at line 416 of file bootstrap.cxx.

◆ fgHomePath()

SGPath fgHomePath ( )

Definition at line 524 of file fg_init.cxx.

◆ fgInitAircraft()

int fgInitAircraft ( bool reinit,
bool didUseLauncher )
Parameters
reinit: is this a second(+) call of the function, i.e after reset
didUseLauncher: allow adjusting UI feedback if we used the launcher or not
Returns
int : an Options result to indicate if we should continue, quit, etc

Definition at line 803 of file fg_init.cxx.

◆ fgInitAircraftPaths()

void fgInitAircraftPaths ( bool reinit)

Definition at line 788 of file fg_init.cxx.

◆ fgInitConfig()

int fgInitConfig ( int argc,
char ** argv,
bool reinit )

Definition at line 688 of file fg_init.cxx.

◆ fgInitGeneral()

bool fgInitGeneral ( )

Definition at line 937 of file fg_init.cxx.

◆ fgInitHome()

InitHomeResult fgInitHome ( )

Definition at line 529 of file fg_init.cxx.

◆ fgInitLocale()

SGPropertyNode * fgInitLocale ( const char * language)

◆ fgInitNav()

bool fgInitNav ( )

Initialize vor/ndb/ils/fix list management and query systems (as well as simple airport db list) This is called multiple times in the case of a cache rebuild, to allow lengthy caching to take place in the background, without blocking the main/UI thread.

Definition at line 892 of file fg_init.cxx.

◆ fgInitPackageRoot()

void fgInitPackageRoot ( )

Definition at line 1496 of file fg_init.cxx.

◆ fgOutputSettings()

void fgOutputSettings ( )

Definition at line 972 of file fg_init.cxx.

◆ fgPostInitSubsystems()

void fgPostInitSubsystems ( )

Definition at line 1171 of file fg_init.cxx.

◆ fgShutdownHome()

void fgShutdownHome ( )

Definition at line 637 of file fg_init.cxx.

◆ fgStartNewReset()

void fgStartNewReset ( )

Definition at line 1283 of file fg_init.cxx.

◆ fgStartReposition()

void fgStartReposition ( )

Definition at line 1204 of file fg_init.cxx.

◆ fgUninstall()

int fgUninstall ( )

Definition at line 1513 of file fg_init.cxx.