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

Definition at line 2384 of file RawEventsViewer.cc.

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

2385 {
2386  QApplication app(argc, const_cast<char**>(argv));
2387 
2388  if (!QGLFormat::hasOpenGL()) {
2389  std::cerr << "This system has no OpenGL support" << std::endl;
2390  return 1;
2391  }
2392 
2393  Configuration conf(argv[0]);
2394  conf.SetPrintUsage(PrintUsage);
2395  SetupConfiguration(conf);
2396  if (!conf.DoParse(argc, argv, PrintHelp))
2397  return 2;
2398 
2399  UIConnector myUi;
2400  if (myUi.SetupConfiguration(conf)<0)
2401  return 3;
2402 
2403  return app.exec();
2404 }
void PrintHelp()
void SetupConfiguration(Configuration &conf)
int SetupConfiguration(Configuration &conf)
void PrintUsage()
Commandline parsing, resource file parsing and database access.
Definition: Configuration.h:9

+ Here is the call graph for this function: