Changeset 11261 for trunk/FACT++


Ignore:
Timestamp:
07/06/11 13:49:03 (13 years ago)
Author:
tbretz
Message:
Removed SetCurrentState; removed includes which are now in Main.h; made argument of EvalConfiguration const; Replaced 'Closing' in output by the correct term 'Closed'
File:
1 edited

Legend:

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

    r11253 r11261  
    3939 */
    4040 //****************************************************************
     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
    4149#include "Dim.h"
    4250#include "Event.h"
     
    4856#include "Converter.h"
    4957#include "MessageImp.h"
    50 #include "LocalControl.h"
    5158#include "DimDescriptionService.h"
    5259
     
    5562//#include "DimServiceInfoList.h"
    5663#include "DimNetwork.h"
    57 //for getting stat of opened files
    58 #include <unistd.h>
    59 //for getting disk free space
    60 #include <sys/statvfs.h>
    61 //for getting files sizes
    62 #include <sys/stat.h>
    63 
    64 #include <fstream>
    65 
    66 #include <boost/bind.hpp>
    67 #if BOOST_VERSION < 104400
    68 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))
    69 #undef BOOST_HAS_RVALUE_REFS
    70 #endif
    71 #endif
    72 #include <boost/thread.hpp>
    7364
    7465#ifdef HAVE_FITS
     
    205196    ~DataLogger();
    206197
    207     int EvalConfiguration(Configuration& conf);
     198    int EvalConfiguration(const Configuration& conf);
    208199
    209200private:
     
    278269    ///from NightlyOpen to waiting transition
    279270    int NightlyToWaitRunPlease();
    280     /// from writing to error
    281     std::string SetCurrentState(int state, const char *txt="", const std::string &cmd="");
    282271#ifdef HAVE_FITS
    283272    ///Open fits files
     
    12801269            {
    12811270                it->reportFile->close();
    1282                 Info("Closing: "+it->reportName);
     1271                Info("Closed: "+it->reportName);
    12831272            }
    12841273#ifdef RUN_LOGS
     
    12861275            {
    12871276                it->logFile->close();
    1288                 Info("Closing: "+it->logName);
     1277                Info("Closed: "+it->logName);
    12891278            }
    12901279#endif
     
    21512140        SetCurrentState(kSM_DailyWriteError);
    21522141}
    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
    21592143// --------------------------------------------------------------------------
    21602144//
     
    24402424//! @param conf the configuration object that should be used
    24412425//!
    2442 int DataLogger::EvalConfiguration(Configuration& conf)
     2426int DataLogger::EvalConfiguration(const Configuration& conf)
    24432427{
    24442428    fDebugIsOn = conf.Get<bool>("debug");
Note: See TracChangeset for help on using the changeset viewer.