Definition at line 137 of file mainVidolvi.cpp. References Impala::CmdOptions::AddOption(), Impala::CmdOptions::GetInstance(), Impala::Application::Videolympics::Vidolvi::Go(), Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), and Impala::CmdOptions::SetDefault(). 00138 { 00139 OglInit(&argc, &argv[0]); 00140 00141 // configuration: 00142 Impala::CmdOptions& options = Impala::CmdOptions::GetInstance(); 00143 options.Initialise(true, false, true); 00144 00145 options.SetDefault("wndWidth", "1280"); 00146 options.SetDefault("wndHeight", "1024"); 00147 00148 options.AddOption(0, "imageSet", "imageset to display", "videolympics.raw"); 00149 // options.AddOption(0, "data", "location", "/home/ork"); 00150 00151 options.AddOption(0, "noArchive", "", "0"); 00152 options.AddOption(0, "imFileArchive", "", "0"); 00153 options.AddOption(0, "imServer", "name", ""); 00154 00155 00156 options.AddOption(0, "loglevel", "0=all .. 10=nothing", "2"); 00157 options.AddOption(0, "logfile", "filename", "trecsearch.log"); 00158 options.AddOption(0, "logtofile", "0 = no, 1 = yes", "1"); 00159 00160 // Videolympics specific parameters 00161 options.AddOption(0, "maxImagesOnRow", "nr of images per team", "25"); 00162 options.AddOption(0, "nrTeams", "number of teams", "9"); 00163 options.AddOption(0, "serverLocation", "hostname", "localhost"); 00164 options.AddOption(0, "serverPort", "port", "14001"); 00165 options.AddOption(0, "serverPassword", "secret password", "Mijn naam is haas"); 00166 00167 if (! options.ParseArgs(argc, argv, "", 0)) 00168 return 1; 00169 00170 Impala::Application::Videolympics::Vidolvi *d = 00171 new Impala::Application::Videolympics::Vidolvi(); 00172 d->Go(); 00173 return 0; 00174 }
Here is the call graph for this function:
|