Ignore:
Timestamp:
05/23/11 15:04:32 (13 years ago)
Author:
tbretz
Message:
Replaced stringstream in log-stream by ostringstream.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/scheduler.cc

    r10765 r10780  
    213213        const int port      = atoi(string(what[7]).c_str());
    214214
    215         stringstream dbnamemsg;
     215        ostringstream dbnamemsg;
    216216        dbnamemsg << "Scheduling started -> using database " << fDBName << ".";
    217217        T::Message(dbnamemsg);
     
    397397            counter++;
    398398        }
    399         stringstream fixedobsmsg;
     399        ostringstream fixedobsmsg;
    400400        fixedobsmsg << obsfixedlist.size() << " fixed observations found. ";
    401401        T::Message(fixedobsmsg);
    402402        cout << obsfixedlist.size() << " fixed observations found. " << endl;
    403403
    404         stringstream stdobsmsg;
     404        ostringstream stdobsmsg;
    405405        stdobsmsg << obsstdlist.size() << " standard observations found. ";
    406406        T::Message(stdobsmsg);
     
    430430                || obsfixedlist[counter2].obsfixedstop > stopsched)
    431431            {
    432                 stringstream skipfixedobsmsg;
     432                ostringstream skipfixedobsmsg;
    433433                skipfixedobsmsg  << "Skip 1 fixed observation (obskey " << obsfixedlist[counter2].obskey_fixed << ") as it is out of scheduling time range.";
    434434                T::Message(skipfixedobsmsg);
     
    452452                    delta1=(obsfixedlist[counter2].obsfixedstop-(*vobs5).obsfixedstart)/2;
    453453                    finalobsfixedstop=obsfixedlist[counter2].obsfixedstop-delta1;
    454                     stringstream warndelta1;
     454                    ostringstream warndelta1;
    455455                    warndelta1 << "Overlap between two fixed observations (" << obsfixedlist[counter2].obskey_fixed << " " << (*vobs5).obskey_fixed << "). The stoptime of " << obsfixedlist[counter2].obskey_fixed << " has been changed.";
    456456                    T::Warn(warndelta1);
     
    463463                    delta2=((*vobs5).obsfixedstop-obsfixedlist[counter2].obsfixedstart)/2;
    464464                    finalobsfixedstart=obsfixedlist[counter2].obsfixedstart+delta2;
    465                     stringstream warndelta2;
     465                    ostringstream warndelta2;
    466466                    warndelta2 << "Overlap between two fixed observations (" << obsfixedlist[counter2].obskey_fixed << " " << (*vobs5).obskey_fixed << "). The starttime of " << obsfixedlist[counter2].obskey_fixed << " has been changed.";
    467467                    T::Warn(warndelta2);
     
    483483            cout << " - " << (*vobs).obsfixedstop << endl;
    484484        }
    485         stringstream obsmsg;
     485        ostringstream obsmsg;
    486486        obsmsg << "Added " << obslist.size() << " fixed observations to ScheduledObs. ";
    487487        T::Message(obsmsg);
     
    495495                {
    496496                    cout << "One double sourcekey in std observations: " << obsstdlist[j].sourcekey_std << endl;
    497                     stringstream errdoublestd;
     497                    ostringstream errdoublestd;
    498498                    errdoublestd << "One double sourcekey in std observations: " << obsstdlist[j].sourcekey_std << " (" << obsstdlist[j].sourcename_std << ").";
    499499                    T::Error(errdoublestd);
     
    576576                    break;
    577577                }
    578                 stringstream q1;
     578                ostringstream q1;
    579579                //cout << (*vobs4).sourcename_run << endl;
    580580                q1 << "INSERT ScheduledRun set fStartTime='" << Time::sql << finalstarttime;
     
    601601            counter3++;
    602602        }
    603         stringstream insertmsg;
     603        ostringstream insertmsg;
    604604        insertmsg << "Inserted " << insertcount << " runs into the DB.";
    605605        T::Message(insertmsg);
     
    617617    int Commit()
    618618    {
    619         stringstream str;
     619        ostringstream str;
    620620        str << "Comitting preview (id=" << fSessionId << ")";
    621621        T::Message(str);
Note: See TracChangeset for help on using the changeset viewer.