569 if (!conf.DoParse(argc, argv,
PrintHelp))
573 if (!conf.Has(
"console"))
575 if (conf.Get<
bool>(
"no-dim"))
576 return RunShell<LocalStream, StateMachine, ConnectionGPS>(conf);
578 return RunShell<LocalStream, StateMachineDim, ConnectionDimWeather>(conf);
581 if (conf.Get<
bool>(
"no-dim"))
583 if (conf.Get<
int>(
"console")==0)
584 return RunShell<LocalShell, StateMachine, ConnectionGPS>(conf);
586 return RunShell<LocalConsole, StateMachine, ConnectionGPS>(conf);
590 if (conf.Get<
int>(
"console")==0)
591 return RunShell<LocalShell, StateMachineDim, ConnectionDimWeather>(conf);
593 return RunShell<LocalConsole, StateMachineDim, ConnectionDimWeather>(conf);
void SetupConfiguration(Configuration &conf)
void SetupConfiguration(Configuration &conf)
Commandline parsing, resource file parsing and database access.