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

Definition at line 648 of file ratescan.cc.

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

649 {
650  Configuration conf(argv[0]);
651  conf.SetPrintUsage(PrintUsage);
653  SetupConfiguration(conf);
654 
655  if (!conf.DoParse(argc, argv, PrintHelp))
656  return 127;
657 
658  //try
659  {
660  // No console access at all
661  if (!conf.Has("console"))
662  {
663 // if (conf.Get<bool>("no-dim"))
664 // return RunShell<LocalStream, StateMachine, ConnectionFSC>(conf);
665 // else
666  return RunShell<LocalStream>(conf);
667  }
668  // Cosole access w/ and w/o Dim
669 /* if (conf.Get<bool>("no-dim"))
670  {
671  if (conf.Get<int>("console")==0)
672  return RunShell<LocalShell, StateMachine, ConnectionFSC>(conf);
673  else
674  return RunShell<LocalConsole, StateMachine, ConnectionFSC>(conf);
675  }
676  else
677 */ {
678  if (conf.Get<int>("console")==0)
679  return RunShell<LocalShell>(conf);
680  else
681  return RunShell<LocalConsole>(conf);
682  }
683  }
684  /*catch (std::exception& e)
685  {
686  cerr << "Exception: " << e.what() << endl;
687  return -1;
688  }*/
689 
690  return 0;
691 }
void SetupConfiguration(Configuration &conf)
Definition: ratescan.cc:595
void SetupConfiguration(Configuration &conf)
Definition: Main.h:25
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9
void PrintUsage()
Definition: ratescan.cc:616
void PrintHelp()
Definition: ratescan.cc:626

+ Here is the call graph for this function: