Changeset 11261 for trunk/FACT++
- Timestamp:
- 07/06/11 13:49:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r11253 r11261 39 39 */ 40 40 //**************************************************************** 41 #include <unistd.h> //for getting stat of opened files 42 #include <sys/statvfs.h> //for getting disk free space 43 #include <sys/stat.h> //for getting files sizes 44 #include <fstream> 45 46 #include <boost/bind.hpp> 47 #include <boost/filesystem.hpp> 48 41 49 #include "Dim.h" 42 50 #include "Event.h" … … 48 56 #include "Converter.h" 49 57 #include "MessageImp.h" 50 #include "LocalControl.h"51 58 #include "DimDescriptionService.h" 52 59 … … 55 62 //#include "DimServiceInfoList.h" 56 63 #include "DimNetwork.h" 57 //for getting stat of opened files58 #include <unistd.h>59 //for getting disk free space60 #include <sys/statvfs.h>61 //for getting files sizes62 #include <sys/stat.h>63 64 #include <fstream>65 66 #include <boost/bind.hpp>67 #if BOOST_VERSION < 10440068 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))69 #undef BOOST_HAS_RVALUE_REFS70 #endif71 #endif72 #include <boost/thread.hpp>73 64 74 65 #ifdef HAVE_FITS … … 205 196 ~DataLogger(); 206 197 207 int EvalConfiguration( Configuration& conf);198 int EvalConfiguration(const Configuration& conf); 208 199 209 200 private: … … 278 269 ///from NightlyOpen to waiting transition 279 270 int NightlyToWaitRunPlease(); 280 /// from writing to error281 std::string SetCurrentState(int state, const char *txt="", const std::string &cmd="");282 271 #ifdef HAVE_FITS 283 272 ///Open fits files … … 1280 1269 { 1281 1270 it->reportFile->close(); 1282 Info("Clos ing: "+it->reportName);1271 Info("Closed: "+it->reportName); 1283 1272 } 1284 1273 #ifdef RUN_LOGS … … 1286 1275 { 1287 1276 it->logFile->close(); 1288 Info("Clos ing: "+it->logName);1277 Info("Closed: "+it->logName); 1289 1278 } 1290 1279 #endif … … 2151 2140 SetCurrentState(kSM_DailyWriteError); 2152 2141 } 2153 std::string DataLogger::SetCurrentState(int state, const char *txt, const std::string &cmd) 2154 { 2155 // if (state == kSM_WriteError && GetCurrentState() == kSM_WriteError) 2156 // return ""; 2157 return StateMachineImp::SetCurrentState(state, txt, cmd); 2158 } 2142 2159 2143 // -------------------------------------------------------------------------- 2160 2144 // … … 2440 2424 //! @param conf the configuration object that should be used 2441 2425 //! 2442 int DataLogger::EvalConfiguration( Configuration& conf)2426 int DataLogger::EvalConfiguration(const Configuration& conf) 2443 2427 { 2444 2428 fDebugIsOn = conf.Get<bool>("debug");
Note:
See TracChangeset
for help on using the changeset viewer.