123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- // 下列 ifdef 块是创建使从 DLL 导出更简单的
- // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 ACQUIREDPC_EXPORTS
- // 符号编译的。在使用此 DLL 的
- // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
- // ACQUIREDPC_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
- // 符号视为是被导出的。
- #ifndef FPDDPC_EXPORTS
- #ifdef _WIN64
- #ifdef _DEBUG
- #pragma comment(lib, "FPDDPCX64D.lib")
- #else
- #pragma comment(lib, "FPDDPCX64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "FPDDPCD.lib")
- #else
- #pragma comment(lib, "FPDDPC.lib")
- #endif
- #endif
- #endif
- #ifdef FPDDPC_EXPORTS
- #define FPDDPC_API __declspec(dllexport)
- #define FPDDPC_C_API extern "C" __declspec(dllexport)
- #else
- #define FPDDPC_API __declspec(dllimport)
- #define FPDDPC_C_API extern "C" __declspec(dllimport)
- #endif
- #include "CalCmdOemDevice.h"
- #include "AcqOemDevice.h"
- #include "TemperatureOem.h"
- #include "Varian4343R0prCtl.h"
- #include "LogicDriver.h"
- //FPDDPC_C_API DPC* GetDPC();
- //FPDDPC_C_API void ReleaseDPC(DPC *p);
- FPDDPC_C_API DriverDPC* GetDriverDPC();
- FPDDPC_C_API void ReleaseDriverDPC(DriverDPC *p);
- class FPDDPC_API FPDDPC : public LogicDriver
- {
- Panel m_PanelInfo;
- std::string *m_pWorkpath;
- bool m_bReset;
- public:
- FPDDPC(void);
- virtual ~FPDDPC(void);
- /*virtual bool DpcEntry(ResDataObject &Configuration);
- virtual ResDataObject GetConnectionType();
- virtual bool Connect(ResDataObject &Connection);
- virtual bool Probe(ResDataObject &HardwareInfo);
- virtual bool SetWorkPath(const char *pWorkPath);
- virtual PVOID LoadLogicDevices();
- virtual void UnloadLogicDevices(PVOID p);
- virtual bool DisConnect();*/
- virtual bool DriverEntry(ResDataObject &Configuration);
- virtual bool Driver_Probe(ResDataObject &HardwareInfo);
- virtual bool SYSTEM_CALL SetDriverWorkPath(const char * PARAM_IN pWorkPath);
- virtual PVOID SYSTEM_CALL LoadDriver();//无根节点
- virtual void SYSTEM_CALL UnloadDriver();
- virtual bool SYSTEM_CALL OnHeartBeat();
- virtual bool Connect();
- virtual void DisConnect();
- //给硬件驱动设置Unique工作路径
- //如果是同一设备同一连接情况下,硬件多次接入,系统会保证工作路径是一样的.
- //连接后,单一硬件相关的数据要保存在此.
- virtual bool SYSTEM_CALL SetDeviceWorkPath(const char * PARAM_IN pWorkPath);
- //逻辑设备树的加载和卸载
- virtual PVOID SYSTEM_CALL LoadLogicDevices();
- virtual void SYSTEM_CALL UnloadLogicDevices();
- virtual bool Device_Probe(ResDataObject &HardwareInfo);
- };
|