Definition at line 90 of file mainImBrowse.cpp. References Impala::CmdOptions::AddOption(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), Impala::CmdOptions::SetDefault(), and OglGui::OglWindow::Valid(). Referenced by main(). 00091 { 00092 CmdOptions& options = CmdOptions::GetInstance(); 00093 options.Initialise(true, false, true); 00094 options.SetDefault("wndWidth", "1270"); 00095 options.SetDefault("wndHeight", "975"); 00096 options.AddOption(0, "imArchive", "", "0"); 00097 options.AddOption(0, "imFileArchive", "", "0"); 00098 options.AddOption(0, "imSplitArchive", "", "0"); 00099 options.AddOption(0, "imServer", "name", ""); 00100 std::string usageStr = "cmd data\n\n"; 00101 usageStr += " cmd = nop\n"; 00102 usageStr += " data = set.txt|anno.ixs|file\n\n"; 00103 if (! options.ParseArgs(argc, argv, usageStr, 2)) 00104 return 1; 00105 00106 int reqWndWidth = options.GetInt("wndWidth"); 00107 int reqWndHeight = options.GetInt("wndHeight"); 00108 WindowImBrowse* wnd = new WindowImBrowse(reqWndWidth, reqWndHeight); 00109 if (! wnd->Valid()) 00110 { 00111 std::cout << "WindowImBrowse failed" << std::endl; 00112 return 0; 00113 } 00114 return 1; 00115 }
Here is the call graph for this function:
|