Changeset 10884 for trunk/FACT++


Ignore:
Timestamp:
05/27/11 17:58:58 (13 years ago)
Author:
tbretz
Message:
Changed stringstream to ostringstream for the use with MessageImp
File:
1 edited

Legend:

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

    r10804 r10884  
    132132int FitsLoader::SetFileOutPlease(const Event& evt)
    133133{
    134     fFileOut = string(evt.GetText());
    135     stringstream str;
     134    fFileOut = evt.GetText();
     135    ostringstream str;
    136136    str << "Output file is now " << fFileOut;
    137     Message(str.str());
     137    Message(str);
    138138    return 0;
    139139}
     
    147147{
    148148    fStreamPrecision = evt.GetInt();
    149     stringstream str;
    150     str << "OFStream precision is now " << fStreamPrecision;
    151     Message(str.str());
     149    ostringstream str;
     150    str << "ofstream precision is now " << fStreamPrecision;
     151    Message(str);
    152152    return 0;
    153153}
     
    347347        if (it->first != checkIndex)
    348348        {
    349             stringstream str;
     349            ostringstream str;
    350350            str << "Expected index " << checkIndex << " found " << it->first;
    351             Error(str.str());
     351            Error(str);
    352352        }
    353353        checkIndex++;
     
    440440        for (std::multimap<string, CCfits::ExtHDU*>::const_iterator it=extMap.begin(); it != extMap.end(); it++)
    441441            str << it->first << " ";
    442         Error(str.str());
     442        Error(str);
    443443        return kSM_Ready;
    444444    }
     
    448448    str.str("");
    449449    str << "Loaded table has " << numRows << " rows";
    450     Message(str.str());
     450    Message(str);
    451451
    452452    fColMap = fTable->column();
     
    541541        if (status)
    542542        {
    543             stringstream str;
     543            ostringstream str;
    544544            str << "An error occurred while reading fits row #" << i << " error code: " << status;
    545             Error(str.str());
     545            Error(str);
    546546            str.str("");
    547547            for (unsigned int j=0;j<offsets.size(); j++)
    548548                str << offsets[j] << " ";
    549             Error(str.str());
     549            Error(str);
    550550        }
    551551        writeValuesFromFits(offsets, targetFile, fitsBuffer);
     
    588588    if (conf.Has("outfile"))
    589589    {
    590         this->fFileOut = conf.Get<string>("outfile");
     590        fFileOut = conf.Get<string>("outfile");
    591591        Message("Output file is: " + fFileOut);
    592592    }
    593593    if (conf.Has("fitsfile"))
    594594    {
    595         this->fFileName = conf.Get<string>("fitsfile");
     595        fFileName = conf.Get<string>("fitsfile");
    596596        Message("Input fits is: " + fFileName);
    597597    }
    598598    if (conf.Has("tablename"))
    599599    {
    600         this->fTableName = conf.Get<string>("tablename");
     600        fTableName = conf.Get<string>("tablename");
    601601        Message("Input Table is: " + fTableName);
    602602    }
    603603    if (conf.Has("dump"))
    604604    {
    605         this->fDumpList = conf.Get<vector<string>>("dump");
     605        fDumpList = conf.Get<vector<string>>("dump");
    606606        Message("Dump list is:");
    607607        for (vector<string>::iterator it=fDumpList.begin(); it != fDumpList.end(); it++)
     
    610610    if (conf.Has("precision"))
    611611    {
    612         this->fStreamPrecision = conf.Get<int>("precision");
    613         stringstream str;
     612        fStreamPrecision = conf.Get<int>("precision");
     613
     614        ostringstream str;
    614615        str << "OFStream precision is: " << fStreamPrecision;
    615         Message(str.str());
     616        Message(str);
    616617    }
    617618}
Note: See TracChangeset for help on using the changeset viewer.