Changeset 11530
- Timestamp:
- 07/22/11 08:48:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Main.h
r11483 r11530 50 50 WindowLog &wout = shell.GetStreamOut(); 51 51 52 const bool backlog = wout.GetBacklog(); 53 const bool null = wout.GetNullOutput(); 54 wout.SetBacklog(false); 55 wout.SetNullOutput(false); 56 wout.Display(true); 57 52 58 if (conf.Has("log")) 53 59 if (!wout.OpenLogFile(conf.Get<string>("log"))) … … 76 82 io_service.Write(now, "\\------------------- Evaluating options -----------------"); 77 83 const int rc = io_service.EvalOptions(conf); 84 if (rc>=0) 85 { 86 ostringstream str; 87 str << "Exit triggered by EvalOptions with rc=" << rc; 88 io_service.Write(now, str.str(), MessageImp::kError); 89 return rc; 90 } 78 91 79 92 const map<string,string> &wco = conf.GetWildcardOptions(); … … 94 107 io_service.Write(now, str.str(), MessageImp::kWarn); 95 108 } 109 io_service.Write(now, "Unrecognized options found, will exit with rc=127", MessageImp::kError); 96 110 return 127; 97 111 } 98 112 99 113 io_service.Message("==================== Starting main loop ================="); 100 if (rc>=0) 101 return rc; 114 115 wout.SetNullOutput(null); 116 wout.SetBacklog(backlog); 102 117 103 118 shell.SetReceiver(io_service);
Note:
See TracChangeset
for help on using the changeset viewer.