Changeset 11325 for trunk/FACT++/src/datalogger.cc
- Timestamp:
- 07/10/11 17:05:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r11320 r11325 613 613 bool DataLogger::OpenTextFilePlease(ofstream& stream, const string& name) 614 614 { 615 Info("Opening: "+name);616 617 615 errno = 0; 618 616 stream.open(name.c_str(), ios_base::out | ios_base::app); … … 624 622 return false; 625 623 } 624 625 Info("Opened: "+name); 626 626 627 627 return true; … … 1205 1205 bool DataLogger::OpenStream(shared_ptr<ofstream> stream, const string &filename) 1206 1206 { 1207 Info("Opening: "+filename);1208 1209 1207 if (stream->is_open()) 1210 1208 { … … 1232 1230 return false; 1233 1231 } 1232 1233 Info("Opened: "+filename); 1234 1234 1235 1235 return true; … … 2016 2016 fOpenedNightlyFits[fileNameOnly].push_back(serviceName); 2017 2017 2018 ostringstream str;2019 str << "Opening: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")";2020 Info(str);2021 2022 2018 if (!sub.nightlyFile.Open(partialName, serviceName, NULL, &fNumSubAndFitsData.numOpenFits, this, 0)) 2023 2019 { … … 2026 2022 return; 2027 2023 } 2024 2025 ostringstream str; 2026 str << "Opened: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")"; 2027 Info(str); 2028 2028 2029 //notify the opening 2029 2030 const string baseFileName = CompileFileNameWithPath(fNightlyFilePath, "", ""); … … 2077 2078 NotifyOpenedFile(baseFileName, 7, fOpenedRunFiles);// + '_' + serviceName, 4); 2078 2079 2079 ostringstream str;2080 str << "Opening: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")";2081 Info(str);2082 2083 2080 if (hasGrouping) 2084 2081 { … … 2099 2096 } 2100 2097 } 2098 2099 ostringstream str; 2100 str << "Opened: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")"; 2101 Info(str); 2102 2101 2103 if (fNumSubAndFitsIsOn) 2102 2104 fNumSubAndFits->updateService();
Note:
See TracChangeset
for help on using the changeset viewer.