FlightGear next
fgjs.cxx File Reference
#include <simgear/compiler.h>
#include <cmath>
#include <iostream>
#include <fstream>
#include <string>
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/io/iostreams/sgstream.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/props/props_io.hxx>
#include <Main/fg_io.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include "jsinput.h"

Go to the source code of this file.

Functions

bool confirmAnswer ()
 
string getFGRoot (int argc, char *argv[])
 
int main (int argc, char *argv[])
 
static string fgScanForOption (const string &option, int argc, char **argv)
 
static string fgScanForOption (const string &option, const SGPath &path)
 
static string fgScanForOption (const string &option)
 
string getFGRoot (int argc, char **argv)
 

Variables

char * homedir = ::getenv( "HOME" )
 
char * hostname = ::getenv( "HOSTNAME" )
 
bool free_hostname = false
 

Function Documentation

◆ confirmAnswer()

bool confirmAnswer ( )

Definition at line 67 of file fgjs.cxx.

◆ fgScanForOption() [1/3]

static string fgScanForOption ( const string & option)
static

Definition at line 293 of file fgjs.cxx.

◆ fgScanForOption() [2/3]

static string fgScanForOption ( const string & option,
const SGPath & path )
static

Definition at line 261 of file fgjs.cxx.

◆ fgScanForOption() [3/3]

static string fgScanForOption ( const string & option,
int argc,
char ** argv )
static

Definition at line 230 of file fgjs.cxx.

◆ getFGRoot() [1/2]

string getFGRoot ( int argc,
char ** argv )

Definition at line 323 of file fgjs.cxx.

◆ getFGRoot() [2/2]

string getFGRoot ( int argc,
char * argv[] )

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 82 of file fgjs.cxx.

Variable Documentation

◆ free_hostname

bool free_hostname = false

Definition at line 226 of file fgjs.cxx.

◆ homedir

char* homedir = ::getenv( "HOME" )

Definition at line 224 of file fgjs.cxx.

◆ hostname

char* hostname = ::getenv( "HOSTNAME" )

Definition at line 225 of file fgjs.cxx.