FACT++  1.0
int main ( int  argc,
const char *  argv[] 
)

Definition at line 3500 of file smartfact.cc.

References Configuration::DoParse(), Configuration::Get(), Configuration::Has(), PrintHelp(), PrintUsage(), Configuration::SetPrintUsage(), Main::SetupConfiguration(), and SetupConfiguration().

3501 {
3502  Configuration conf(argv[0]);
3503  conf.SetPrintUsage(PrintUsage);
3505  SetupConfiguration(conf);
3506 
3507  if (!conf.DoParse(argc, argv, PrintHelp))
3508  return 127;
3509 
3510  if (!conf.Has("console"))
3511  return RunShell<LocalStream>(conf);
3512 
3513  if (conf.Get<int>("console")==0)
3514  return RunShell<LocalShell>(conf);
3515  else
3516  return RunShell<LocalConsole>(conf);
3517 
3518  return 0;
3519 }
void SetupConfiguration(Configuration &conf)
Definition: Main.h:25
void SetupConfiguration(Configuration &conf)
Definition: smartfact.cc:3441
void PrintUsage()
Definition: smartfact.cc:3463
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9
void PrintHelp()
Definition: smartfact.cc:3478

+ Here is the call graph for this function: