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