00001 #ifndef SCTCONFIGURATIONRUNCONTROLLER_H
00002 #define SCTCONFIGURATIONRUNCONTROLLER_H
00003
00004 #ifdef linux
00005 #undef linux
00006 #endif
00007
00008 #include <rc/UserRoutines.h>
00009 #include <boost/utility.hpp>
00010 #include <boost/shared_ptr.hpp>
00011 #include <string>
00012 #include "sctConf/configuration.h"
00013
00014 using std::string;
00015
00016 namespace SctConfigurationController {
00017
00019 class RunControl : public RC::UserRoutines, boost::noncopyable {
00020 public:
00021
00022 static RunControl& initialize(SctConfiguration::Configuration& c);
00023 virtual bool prepareAction();
00024 virtual bool stopEFAction();
00025 virtual ~RunControl();
00026 private:
00028 void doSave(const std::string& suffix);
00029 RunControl(SctConfiguration::Configuration& c);
00030 RunControl();
00031 SctConfiguration::Configuration* config;
00032 };
00033
00034 }
00035
00036 #endif //SCTCONFIGURATIONRUNCONTROLLER_H