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

Definition at line 983 of file ratecontrol.cc.

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

984 {
985  Configuration conf(argv[0]);
986  conf.SetPrintUsage(PrintUsage);
988  SetupConfiguration(conf);
989 
990  if (!conf.DoParse(argc, argv, PrintHelp))
991  return 127;
992 
993  if (!conf.Has("console"))
994  return RunShell<LocalStream>(conf);
995 
996  if (conf.Get<int>("console")==0)
997  return RunShell<LocalShell>(conf);
998  else
999  return RunShell<LocalConsole>(conf);
1000 
1001  return 0;
1002 }
void SetupConfiguration(Configuration &conf)
Definition: Main.h:25
void SetupConfiguration(Configuration &conf)
Definition: ratecontrol.cc:917
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9
void PrintUsage()
Definition: ratecontrol.cc:951
void PrintHelp()
Definition: ratecontrol.cc:961

+ Here is the call graph for this function: