Changeset 10693 for trunk/FACT++/src
- Timestamp:
- 05/13/11 11:24:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dataLogger.cc
r10688 r10693 66 66 #include <sys/stat.h> 67 67 68 #define HAS_FITS69 68 //#define ONE_RUN_FITS_ONLY 70 69 … … 79 78 #include <boost/thread.hpp> 80 79 81 #ifdef HA S_FITS80 #ifdef HAVE_FITS 82 81 #include "Fits.h" 83 82 #endif … … 177 176 struct SubscriptionType 178 177 { 179 #ifdef HA S_FITS178 #ifdef HAVE_FITS 180 179 ///Nightly FITS output file 181 180 Fits nightlyFile; … … 192 191 void operator = (const SubscriptionType& other) 193 192 { 194 #ifdef HA S_FITS193 #ifdef HAVE_FITS 195 194 nightlyFile = other.nightlyFile; 196 195 runFile = other.runFile; … … 203 202 SubscriptionType(const SubscriptionType& other) 204 203 { 205 #ifdef HA S_FITS204 #ifdef HAVE_FITS 206 205 nightlyFile = other.nightlyFile; 207 206 runFile = other.runFile; … … 233 232 if (dimInfo) 234 233 delete dimInfo; 235 #ifdef HA S_FITS234 #ifdef HAVE_FITS 236 235 if (nightlyFile.IsOpen()) 237 236 nightlyFile.Close(); … … 277 276 ///from NightlyOpen to waiting transition 278 277 int NightlyToWaitRunPlease(); 279 #ifdef HA S_FITS278 #ifdef HAVE_FITS 280 279 ///Open fits files 281 280 void OpenFITSFilesPlease(SubscriptionType& sub); … … 342 341 void DataLogger::calculateTotalSizeWritten(DataLoggerStats& statVar, bool& shouldWarn, bool isPrinting) 343 342 { 344 #ifdef HA S_FITS343 #ifdef HAVE_FITS 345 344 if (isPrinting) 346 345 { … … 473 472 //update the fits files sizes 474 473 calculateTotalSizeWritten(statVar, statWarning, false);/* 475 #ifdef HA S_FITS474 #ifdef HAVE_FITS 476 475 SubscriptionsListType::iterator x; 477 476 std::map<std::string, SubscriptionType>::iterator y; … … 576 575 fRunNumber = -1; 577 576 fPreviousRunNumber = fRunNumber; 578 #ifdef HA S_FITS577 #ifdef HAVE_FITS 579 578 #ifdef ONE_RUN_FITS_ONLY 580 579 fRunFitsFile = NULL; … … 869 868 delete fNumSubAndFits; 870 869 //TODO notify that all files were closed 871 #ifdef HA S_FITS870 #ifdef HAVE_FITS 872 871 #ifdef ONE_RUN_FITS_ONLY 873 872 if (fRunFitsFile != NULL) … … 1127 1126 } 1128 1127 1129 #ifdef HA S_FITS1128 #ifdef HAVE_FITS 1130 1129 if (isItaReport) 1131 1130 { … … 1293 1292 DataLoggerStats statVar; 1294 1293 calculateTotalSizeWritten(statVar, statWarning, false);/* 1295 #ifdef HA S_FITS1294 #ifdef HAVE_FITS 1296 1295 str.str(""); 1297 1296 str << "There are " << fNumSubAndFitsData.numOpenFits << " FITS files open:"; … … 1663 1662 } 1664 1663 1665 #ifdef HA S_FITS1664 #ifdef HAVE_FITS 1666 1665 // -------------------------------------------------------------------------- 1667 1666 // … … 1995 1994 if (fRunReportFile.is_open()) 1996 1995 fRunReportFile.close(); 1997 #ifdef HA S_FITS1996 #ifdef HAVE_FITS 1998 1997 for (SubscriptionsListType::iterator i = fServiceSubscriptions.begin(); i != fServiceSubscriptions.end(); i++) 1999 1998 for (std::map<std::string, SubscriptionType>::iterator j = i->second.begin(); j != i->second.end(); j++) … … 2039 2038 fRunReportFile.close(); 2040 2039 2041 #ifdef HA S_FITS2040 #ifdef HAVE_FITS 2042 2041 for (SubscriptionsListType::iterator i = fServiceSubscriptions.begin(); i != fServiceSubscriptions.end(); i++) 2043 2042 for (std::map<std::string, SubscriptionType>::iterator j = i->second.begin(); j != i->second.end(); j++)
Note:
See TracChangeset
for help on using the changeset viewer.