123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #ifndef ABSTRACTACQ_EXPORTS
- #ifdef WIN_64BIT
- #ifdef _DEBUG
- #pragma comment(lib, "AbstractAcqX64D.lib")
- #else
- #pragma comment(lib, "AbstractAcqX64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "AbstractAcqD.lib")
- #else
- #pragma comment(lib, "AbstractAcq.lib")
- #endif
- #endif
- #endif
- #ifdef ABSTRACTACQ_EXPORTS
- #define ABSTRACTACQ_API __declspec(dllexport)
- #else
- #define ABSTRACTACQ_API __declspec(dllimport)
- #endif
- #include "LogicDevice.h"
- #include "CommonLogicClient.h"
- #include <map>
- class ABSTRACTACQ_API AbstractAcq : public LogicDevice
- {
-
- public:
- AbstractAcq(void);
- virtual ~AbstractAcq(void);
-
- void *m_pData;
- char *m_chLog;
- //get device type
- virtual bool SYSTEM_CALL GetDeviceType(GUID &DevType);
- //get device resource
- virtual RET_STATUS SYSTEM_CALL GetDeviceResource(ResDataObject PARAM_OUT *pDeviceResource);
- //ResourceCommand Request In and Response Out
- virtual RET_STATUS SYSTEM_CALL Request(ResDataObject PARAM_IN *pRequest, ResDataObject PARAM_OUT *pResponse);
- //notify to lower layer
- virtual RET_STATUS SYSTEM_CALL CmdToLogicDev(ResDataObject PARAM_IN *pCmd);
- //errors,warnings
- void SetErrorInfo(int errCode, char *pErrInfo);
- void SetWarningInfo(int warningCode, char *pWarningInfo);
- void LogInfo(string str);
- public:
- void InitState(map<CommonLogicClient*, int> &objSM);
- bool StateAction(char*, map<CommonLogicClient*, int>& objSM);
- bool StateGuard(char*, map<CommonLogicClient*, int> &objSM);
- bool StateNotify(char* strState, bool bResult);
- public:
- //fpd actions
- virtual RET_STATUS OpenLogicDevice();
- virtual RET_STATUS CloseLogicDevice();
- virtual RET_STATUS AddLogicDevice(string path);
- virtual RET_STATUS DelLogicDevice(string path);
- virtual RET_STATUS SetApplicationMode(ResDataObject nApplicationMode);
- virtual RET_STATUS SetExamMode(ResDataObject nExamMode);
- virtual RET_STATUS SetImgID(ResDataObject nImgID);
-
- virtual RET_STATUS GetSEQResource(ResDataObject PARAM_OUT *pDeviceResource);
- virtual RET_STATUS SeqPrep();
- virtual RET_STATUS SeqReady();
- virtual RET_STATUS FramePrep();
- virtual RET_STATUS FrameReady();
- virtual RET_STATUS FrameStart();
- virtual RET_STATUS XWindowOn();
- virtual RET_STATUS FrameIn();
- virtual RET_STATUS FrameInComplete();
- virtual RET_STATUS FramePost();
- virtual RET_STATUS FramePostResult();
- virtual RET_STATUS FrameEnd();
- virtual RET_STATUS FrameEndResult();
- virtual RET_STATUS SeqPost();
- virtual RET_STATUS SeqPostResult();
- //we need check each action resource is Support or not
- //return yes or no inside of OEM module
- virtual RET_STATUS Support_SetSyncMode();
- virtual RET_STATUS Support_SetXWindowTime();
- virtual RET_STATUS Support_SetApplicationMode();
- virtual RET_STATUS Support_SetExamMode();
- virtual RET_STATUS Support_GetSEQResource();
- virtual RET_STATUS Support_SeqPrep();
- virtual RET_STATUS Support_SeqReady();
- virtual RET_STATUS Support_FramePrep();
- virtual RET_STATUS Support_FrameReady();
- virtual RET_STATUS Support_FrameStart();
- virtual RET_STATUS Support_XWindowOn();
- virtual RET_STATUS Support_FrameIn();
- virtual RET_STATUS Support_FrameInComplete();
- virtual RET_STATUS Support_FramePost();
- virtual RET_STATUS Support_FramePostResult();
- virtual RET_STATUS Support_FrameEnd();
- virtual RET_STATUS Support_FrameEndResult();
- virtual RET_STATUS Support_SeqPost();
- virtual RET_STATUS Support_SeqPostResult();
- };
|