Changeset 10780 for trunk/FACT++/src/scheduler.cc
- Timestamp:
- 05/23/11 15:04:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/scheduler.cc
r10765 r10780 213 213 const int port = atoi(string(what[7]).c_str()); 214 214 215 stringstream dbnamemsg;215 ostringstream dbnamemsg; 216 216 dbnamemsg << "Scheduling started -> using database " << fDBName << "."; 217 217 T::Message(dbnamemsg); … … 397 397 counter++; 398 398 } 399 stringstream fixedobsmsg;399 ostringstream fixedobsmsg; 400 400 fixedobsmsg << obsfixedlist.size() << " fixed observations found. "; 401 401 T::Message(fixedobsmsg); 402 402 cout << obsfixedlist.size() << " fixed observations found. " << endl; 403 403 404 stringstream stdobsmsg;404 ostringstream stdobsmsg; 405 405 stdobsmsg << obsstdlist.size() << " standard observations found. "; 406 406 T::Message(stdobsmsg); … … 430 430 || obsfixedlist[counter2].obsfixedstop > stopsched) 431 431 { 432 stringstream skipfixedobsmsg;432 ostringstream skipfixedobsmsg; 433 433 skipfixedobsmsg << "Skip 1 fixed observation (obskey " << obsfixedlist[counter2].obskey_fixed << ") as it is out of scheduling time range."; 434 434 T::Message(skipfixedobsmsg); … … 452 452 delta1=(obsfixedlist[counter2].obsfixedstop-(*vobs5).obsfixedstart)/2; 453 453 finalobsfixedstop=obsfixedlist[counter2].obsfixedstop-delta1; 454 stringstream warndelta1;454 ostringstream warndelta1; 455 455 warndelta1 << "Overlap between two fixed observations (" << obsfixedlist[counter2].obskey_fixed << " " << (*vobs5).obskey_fixed << "). The stoptime of " << obsfixedlist[counter2].obskey_fixed << " has been changed."; 456 456 T::Warn(warndelta1); … … 463 463 delta2=((*vobs5).obsfixedstop-obsfixedlist[counter2].obsfixedstart)/2; 464 464 finalobsfixedstart=obsfixedlist[counter2].obsfixedstart+delta2; 465 stringstream warndelta2;465 ostringstream warndelta2; 466 466 warndelta2 << "Overlap between two fixed observations (" << obsfixedlist[counter2].obskey_fixed << " " << (*vobs5).obskey_fixed << "). The starttime of " << obsfixedlist[counter2].obskey_fixed << " has been changed."; 467 467 T::Warn(warndelta2); … … 483 483 cout << " - " << (*vobs).obsfixedstop << endl; 484 484 } 485 stringstream obsmsg;485 ostringstream obsmsg; 486 486 obsmsg << "Added " << obslist.size() << " fixed observations to ScheduledObs. "; 487 487 T::Message(obsmsg); … … 495 495 { 496 496 cout << "One double sourcekey in std observations: " << obsstdlist[j].sourcekey_std << endl; 497 stringstream errdoublestd;497 ostringstream errdoublestd; 498 498 errdoublestd << "One double sourcekey in std observations: " << obsstdlist[j].sourcekey_std << " (" << obsstdlist[j].sourcename_std << ")."; 499 499 T::Error(errdoublestd); … … 576 576 break; 577 577 } 578 stringstream q1;578 ostringstream q1; 579 579 //cout << (*vobs4).sourcename_run << endl; 580 580 q1 << "INSERT ScheduledRun set fStartTime='" << Time::sql << finalstarttime; … … 601 601 counter3++; 602 602 } 603 stringstream insertmsg;603 ostringstream insertmsg; 604 604 insertmsg << "Inserted " << insertcount << " runs into the DB."; 605 605 T::Message(insertmsg); … … 617 617 int Commit() 618 618 { 619 stringstream str;619 ostringstream str; 620 620 str << "Comitting preview (id=" << fSessionId << ")"; 621 621 T::Message(str);
Note:
See TracChangeset
for help on using the changeset viewer.