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

Definition at line 672 of file fitsloader.cc.

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

673 {
674  Configuration conf(argv[0]);
675  conf.SetPrintUsage(PrintUsage);
676  SetupConfiguration(conf);
677 
678  if (!conf.DoParse(argc, argv, PrintHelp))
679  return -1;
680 
681 // if (!conf.Has("console"))
682 // return Run(conf);
683  if (conf.Get<int>("console")==0)
684  return RunShell<LocalShell>(conf);
685  else
686  return RunShell<LocalConsole>(conf);
687 
688  return 0;
689 }
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9
void SetupConfiguration(Configuration &conf)
Definition: fitsloader.cc:653
void PrintUsage()
Definition: fitsloader.cc:645
void PrintHelp()
Definition: fitsloader.cc:649

+ Here is the call graph for this function: