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

DefaultTest.h

Go to the documentation of this file.
00001 #ifndef DEFAULTTEST_H
00002 #define DEFAULTTEST_H
00003 
00004 #include "../ipc/TestRequest.h"
00005 #include "../ipc/CalibrationController.h"
00006 #include "../ipc/Sct_CalibrationController.hh"
00007 #include <CommonWithDsp/ABCD/ABCDscans.h>
00008 
00009 using namespace SctCalibrationController::Ipc;
00010 
00011 namespace SctCalibrationController {
00012 namespace Scripts {
00013     
00014 class DefaultTest : public TestRequest {
00015 public: 
00016     DefaultTest(Sct_SctApi_T_Scan& scan) : scan(scan) {}
00017     
00018     virtual void startTest(Sct_SctApi_T_SctApi& api, string& name, unsigned short& testVariable, unsigned long& nScans, vector<double>& testPoints) {
00019     name = "DefaultTest";
00020     testVariable = ST_ELAPSED;
00021     nScans = 1;
00022     testPoints.push_back(0);
00023     }
00024     
00025     virtual Sct_SctApi_T_Scan* getNextScan(unsigned long index) {
00026     if (index == 0) return &scan;
00027     return 0;
00028     }
00029     
00030     virtual bool canFeedback() {
00031     return false;
00032     }
00033     
00034     virtual void endTest() {}
00035     
00036 private:
00037     Sct_SctApi_T_Scan& scan;
00038 };
00039 }
00040 }
00041 #endif //DEFAULTTEST_H

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