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

Definition at line 217 of file timecheck.cc.

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

218 {
219  Configuration conf(argv[0]);
220  conf.SetPrintUsage(PrintUsage);
222  SetupConfiguration(conf);
223 
224  if (!conf.DoParse(argc, argv, PrintHelp))
225  return 127;
226 
227  if (!conf.Has("console"))
228  return RunShell<LocalStream>(conf);
229 
230  if (conf.Get<int>("console")==0)
231  return RunShell<LocalShell>(conf);
232  else
233  return RunShell<LocalConsole>(conf);
234 
235  return 0;
236 }
void SetupConfiguration(Configuration &conf)
Definition: Main.h:25
void PrintHelp()
Definition: timecheck.cc:195
void PrintUsage()
Definition: timecheck.cc:179
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9
void SetupConfiguration(Configuration &conf)
Definition: timecheck.cc:159

+ Here is the call graph for this function: