Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

RunController.h

Go to the documentation of this file.
00001 #ifndef SCTCALIBRATIONRUNCONTROLLER_H
00002 #define SCTCALIBRATIONRUNCONTROLLER_H
00003 
00004 #ifdef linux
00005 #undef linux
00006 #endif
00007 
00008 #include <rc/rc_interface.h>
00009 #include <boost/utility.hpp>
00010 #include <string>
00011 
00012 using std::string;
00013 
00014 class Sct_SctApi_T_SctApi;
00015 
00016 namespace SctCalibrationController {
00017 
00018 class CalibrationControllerImpl;
00019 
00020 class RunControl : public rc_interface, boost::noncopyable {
00021 public:
00022     enum ErrorState {
00023         SCTAPI_ACCESS_FAILURE
00024     };
00025 
00026     static RunControl& instance();
00027 
00028     //methods associated with Alive
00029     //  virtual void enterAlive();
00030     //virtual void exitAlive();
00031     //  virtual void killaction ();
00032     virtual int resetaction ();
00033 
00034     //methods associated to Initial
00035     //  virtual void enterInitial();
00036     //  virtual void exitInitial();
00041     virtual int loadaction ();
00042     //virtual void terminateaction ();
00043 
00044     //methods associated with Active
00045     //virtual void enterActive();
00046     //  virtual void exitActive();
00047     //  virtual int stopaction ();
00048 
00049     //methods associated with Running
00050     virtual void enterRunning();
00051     virtual void exitRunning();
00052     //  virtual int pauseaction ();
00053 
00054     //methods associated with Paused
00055     //  virtual void enterPaused();
00056     //  virtual void exitPaused();
00057     //  virtual int stepaction ();
00058     //  virtual int resumeaction ();
00059 
00060     //methods associated with Configured
00061     virtual void enterConfigured();
00062     //  virtual void exitConfigured();
00063     //virtual int unconfigaction();
00064 
00065     //  virtual int startaction ();
00066 
00067     //methods associated with Loaded
00068     //  virtual void enterLoaded();
00069     //  virtual void exitLoaded();
00070     virtual int unloadaction ();
00071     //virtual int configaction ();
00072 
00076     void sctApiError(ErrorState state, const string& reason);
00077 
00078 private:
00079     RunControl();
00080     CalibrationControllerImpl& cc;
00081     Sct_SctApi_T_SctApi* api;
00082 
00083 };
00084 
00085 }
00086 
00087 #endif //SCTCALIBRATIONRUNCONTROLLER_H

Generated on Mon Dec 15 19:36:14 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3