Definition at line 194 of file mainVideoExcel.cpp. References Impala::CmdOptions::AddOption(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::Application::VideoExcel::VideoExcel::Go(), ILOG_SYSTEM, ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), and Impala::CmdOptions::SetDefault(). Referenced by main(). 00195 { 00196 OglInit(&argc, &argv[0]); 00197 00198 // configuration: 00199 Impala::CmdOptions& options = Impala::CmdOptions::GetInstance(); 00200 options.Initialise(true, false, true); 00201 options.SetDefault("wndWidth", "1270"); 00202 options.SetDefault("wndHeight", "975"); 00203 options.AddOption(0, "imageCacheSize", "size of image cache", "800"); 00204 options.AddOption('a',"database", "database file to use",""); 00205 options.AddOption('d',"directory", "directory of images to use",""); 00206 options.AddOption(0, "trec", "", "0"); 00207 options.AddOption(0, "preload","", "0"); 00208 00209 if (! options.ParseArgs(argc, argv, "", 0)) 00210 return 1; 00211 00212 ILOG_VAR(VideoExcel.mainVideoExcel); 00213 00214 ILOG_SYSTEM("LOADING......"); 00215 int w = options.GetInt("wndWidth"); 00216 int h = options.GetInt("wndHeight"); 00217 00218 00219 Impala::Application::VideoExcel::VideoExcel *d = 00220 new Impala::Application::VideoExcel::VideoExcel(w,h); 00221 ILOG_SYSTEM("STARTING -----------------------------"); 00222 d->Go(); 00223 return 0; 00224 }
Here is the call graph for this function:
|