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

RunController.h

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     virtual int startaction ();
00065 
00066     //methods associated with Loaded
00067     //  virtual void enterLoaded();
00068     //  virtual void exitLoaded();
00069     virtual int unloadaction ();
00070     virtual int configaction ();
00071 
00075     void sctApiError(ErrorState state, const string& reason);
00076 
00077 private:
00078     RunControl();
00079     CalibrationControllerImpl& cc;
00080     Sct_SctApi_T_SctApi* api;
00081 
00082 };
00083 
00084 }
00085 
00086 #endif //SCTCALIBRATIONRUNCONTROLLER_H

Generated on Thu Jul 15 09:50:51 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5