Changeset 12442 for trunk/FACT++/src
- Timestamp:
- 11/07/11 03:21:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r12431 r12442 384 384 vector<string> backLogBuffer; 385 385 bool shouldBackLog; 386 bool fShouldAutoStart; 387 bool fAutoStarted; 386 388 public: 387 389 int Write(const Time &time, const std::string &txt, int qos=kMessage); … … 863 865 864 866 fRunNumberService = NULL; 865 867 fShouldAutoStart = false; 868 fAutoStarted = false; 866 869 if(fDebugIsOn) 867 870 { … … 952 955 void DataLogger::infoHandler() 953 956 { 957 if (!fAutoStarted && fShouldAutoStart) 958 { 959 fAutoStarted = true; 960 SetCurrentState(StartPlease()); 961 } 954 962 DimInfo* I = getInfo(); 955 963 … … 2278 2286 //configure if the number of subscriptions and fits files is on or off. 2279 2287 fNumSubAndFitsIsOn = !conf.Get<bool>("no-numsubs-service"); 2280 2288 //should we open the daily files at startup ? 2289 if (conf.Has("start-daily-files")) 2290 if (conf.Get<bool>("start-daily-files")) 2291 { 2292 fShouldAutoStart = true; 2293 } 2281 2294 return -1; 2282 2295 } … … 2353 2366 ("no-filename-service", po_bool(), "Disable update of filename service") 2354 2367 ("no-numsubs-service", po_bool(), "Disable update of number-of-subscriptions service") 2368 ("start-daily-files", po_bool(), "Starts the logger in DailyFileOpen instead of Ready") 2355 2369 ; 2356 2370
Note:
See TracChangeset
for help on using the changeset viewer.