Definition at line 166 of file mainTrecResult.cpp. References Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::Initialise(), Impala::Application::DemoCamera2d::oglWnd, Impala::CmdOptions::ParseArgs(), Impala::CmdOptions::SetDefault(), and OglGui::OglWindow::Valid(). Referenced by main(). 00167 { 00168 CmdOptions& options = CmdOptions::GetInstance(); 00169 options.Initialise(true, false, true); 00170 options.SetDefault("wndWidth", "950"); 00171 options.SetDefault("wndHeight", "580"); 00172 if (! options.ParseArgs(argc, argv, "topic_result.xml", 1)) 00173 return 1; 00174 00175 int reqWndWidth = options.GetInt("wndWidth"); 00176 int reqWndHeight = options.GetInt("wndHeight"); 00177 WindowTrecResult* oglWnd = new WindowTrecResult(reqWndWidth, reqWndHeight); 00178 if (! oglWnd->Valid()) 00179 { 00180 std::cout << "WindowTrecResult failed" << std::endl; 00181 return 0; 00182 } 00183 return 1; 00184 }
Here is the call graph for this function:
|