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

Definition at line 2389 of file datalogger.cc.

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

2390 {
2391  Configuration conf(argv[0]);
2392  conf.SetPrintUsage(PrintUsage);
2394  SetupConfiguration(conf);
2395 
2396  if (!conf.DoParse(argc, argv, PrintHelp))
2397  return 127;
2398 
2399  {
2400  // No console access at all
2401  if (!conf.Has("console"))
2402  return RunShell<LocalStream>(conf);
2403 
2404  // Console access w/ and w/o Dim
2405  if (conf.Get<int>("console")==0)
2406  return RunShell<LocalShell>(conf);
2407  else
2408  return RunShell<LocalConsole>(conf);
2409  }
2410 
2411 
2412  return 0;
2413 }
void SetupConfiguration(Configuration &conf)
Definition: Main.h:25
void PrintUsage()
Definition: datalogger.cc:2330
void SetupConfiguration(Configuration &conf)
Definition: datalogger.cc:2369
void PrintHelp()
Definition: datalogger.cc:2347
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9

+ Here is the call graph for this function: