506 if (!conf.DoParse(argc, argv,
PrintHelp))
510 if (!conf.Has(
"console"))
512 if (conf.Get<
bool>(
"no-dim"))
513 return RunShell<LocalStream, StateMachine, ConnectionSQM>(conf);
515 return RunShell<LocalStream, StateMachineDim, ConnectionDimWeather>(conf);
518 if (conf.Get<
bool>(
"no-dim"))
520 if (conf.Get<
int>(
"console")==0)
521 return RunShell<LocalShell, StateMachine, ConnectionSQM>(conf);
523 return RunShell<LocalConsole, StateMachine, ConnectionSQM>(conf);
527 if (conf.Get<
int>(
"console")==0)
528 return RunShell<LocalShell, StateMachineDim, ConnectionDimWeather>(conf);
530 return RunShell<LocalConsole, StateMachineDim, ConnectionDimWeather>(conf);
void SetupConfiguration(Configuration &conf)
void SetupConfiguration(Configuration &conf)
Commandline parsing, resource file parsing and database access.