- Timestamp:
- 05/27/11 17:58:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsloader.cc
r10804 r10884 132 132 int FitsLoader::SetFileOutPlease(const Event& evt) 133 133 { 134 fFileOut = string(evt.GetText());135 stringstream str;134 fFileOut = evt.GetText(); 135 ostringstream str; 136 136 str << "Output file is now " << fFileOut; 137 Message(str .str());137 Message(str); 138 138 return 0; 139 139 } … … 147 147 { 148 148 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); 152 152 return 0; 153 153 } … … 347 347 if (it->first != checkIndex) 348 348 { 349 stringstream str;349 ostringstream str; 350 350 str << "Expected index " << checkIndex << " found " << it->first; 351 Error(str .str());351 Error(str); 352 352 } 353 353 checkIndex++; … … 440 440 for (std::multimap<string, CCfits::ExtHDU*>::const_iterator it=extMap.begin(); it != extMap.end(); it++) 441 441 str << it->first << " "; 442 Error(str .str());442 Error(str); 443 443 return kSM_Ready; 444 444 } … … 448 448 str.str(""); 449 449 str << "Loaded table has " << numRows << " rows"; 450 Message(str .str());450 Message(str); 451 451 452 452 fColMap = fTable->column(); … … 541 541 if (status) 542 542 { 543 stringstream str;543 ostringstream str; 544 544 str << "An error occurred while reading fits row #" << i << " error code: " << status; 545 Error(str .str());545 Error(str); 546 546 str.str(""); 547 547 for (unsigned int j=0;j<offsets.size(); j++) 548 548 str << offsets[j] << " "; 549 Error(str .str());549 Error(str); 550 550 } 551 551 writeValuesFromFits(offsets, targetFile, fitsBuffer); … … 588 588 if (conf.Has("outfile")) 589 589 { 590 this->fFileOut = conf.Get<string>("outfile");590 fFileOut = conf.Get<string>("outfile"); 591 591 Message("Output file is: " + fFileOut); 592 592 } 593 593 if (conf.Has("fitsfile")) 594 594 { 595 this->fFileName = conf.Get<string>("fitsfile");595 fFileName = conf.Get<string>("fitsfile"); 596 596 Message("Input fits is: " + fFileName); 597 597 } 598 598 if (conf.Has("tablename")) 599 599 { 600 this->fTableName = conf.Get<string>("tablename");600 fTableName = conf.Get<string>("tablename"); 601 601 Message("Input Table is: " + fTableName); 602 602 } 603 603 if (conf.Has("dump")) 604 604 { 605 this->fDumpList = conf.Get<vector<string>>("dump");605 fDumpList = conf.Get<vector<string>>("dump"); 606 606 Message("Dump list is:"); 607 607 for (vector<string>::iterator it=fDumpList.begin(); it != fDumpList.end(); it++) … … 610 610 if (conf.Has("precision")) 611 611 { 612 this->fStreamPrecision = conf.Get<int>("precision"); 613 stringstream str; 612 fStreamPrecision = conf.Get<int>("precision"); 613 614 ostringstream str; 614 615 str << "OFStream precision is: " << fStreamPrecision; 615 Message(str .str());616 Message(str); 616 617 } 617 618 }
Note:
See TracChangeset
for help on using the changeset viewer.