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

Definition at line 1421 of file feedback.cc.

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

1422 {
1423  Configuration conf(argv[0]);
1424  conf.SetPrintUsage(PrintUsage);
1426  SetupConfiguration(conf);
1427 
1428  if (!conf.DoParse(argc, argv, PrintHelp))
1429  return 127;
1430 
1431  //try
1432  {
1433  // No console access at all
1434  if (!conf.Has("console"))
1435  {
1436 // if (conf.Get<bool>("no-dim"))
1437 // return RunShell<LocalStream, StateMachine, ConnectionFSC>(conf);
1438 // else
1439  return RunShell<LocalStream>(conf);
1440  }
1441  // Cosole access w/ and w/o Dim
1442 /* if (conf.Get<bool>("no-dim"))
1443  {
1444  if (conf.Get<int>("console")==0)
1445  return RunShell<LocalShell, StateMachine, ConnectionFSC>(conf);
1446  else
1447  return RunShell<LocalConsole, StateMachine, ConnectionFSC>(conf);
1448  }
1449  else
1450 */ {
1451  if (conf.Get<int>("console")==0)
1452  return RunShell<LocalShell>(conf);
1453  else
1454  return RunShell<LocalConsole>(conf);
1455  }
1456  }
1457  /*catch (std::exception& e)
1458  {
1459  cerr << "Exception: " << e.what() << endl;
1460  return -1;
1461  }*/
1462 
1463  return 0;
1464 }
void SetupConfiguration(Configuration &conf)
Definition: Main.h:25
void PrintUsage()
Definition: feedback.cc:1384
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9
void SetupConfiguration(Configuration &conf)
Definition: feedback.cc:1359
void PrintHelp()
Definition: feedback.cc:1399

+ Here is the call graph for this function: