FPDDPC.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // 下列 ifdef 块是创建使从 DLL 导出更简单的
  2. // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 ACQUIREDPC_EXPORTS
  3. // 符号编译的。在使用此 DLL 的
  4. // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
  5. // ACQUIREDPC_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
  6. // 符号视为是被导出的。
  7. #ifndef FPDDPC_EXPORTS
  8. #ifdef _WIN64
  9. #ifdef _DEBUG
  10. #pragma comment(lib, "FPDDPCX64D.lib")
  11. #else
  12. #pragma comment(lib, "FPDDPCX64.lib")
  13. #endif
  14. #else
  15. #ifdef _DEBUG
  16. #pragma comment(lib, "FPDDPCD.lib")
  17. #else
  18. #pragma comment(lib, "FPDDPC.lib")
  19. #endif
  20. #endif
  21. #endif
  22. #ifdef FPDDPC_EXPORTS
  23. #define FPDDPC_API __declspec(dllexport)
  24. #define FPDDPC_C_API extern "C" __declspec(dllexport)
  25. #else
  26. #define FPDDPC_API __declspec(dllimport)
  27. #define FPDDPC_C_API extern "C" __declspec(dllimport)
  28. #endif
  29. #include "CalCmdOemDevice.h"
  30. #include "AcqOemDevice.h"
  31. #include "TemperatureOem.h"
  32. #include "Varian4343R0prCtl.h"
  33. #include "LogicDriver.h"
  34. //FPDDPC_C_API DPC* GetDPC();
  35. //FPDDPC_C_API void ReleaseDPC(DPC *p);
  36. FPDDPC_C_API DriverDPC* GetDriverDPC();
  37. FPDDPC_C_API void ReleaseDriverDPC(DriverDPC *p);
  38. class FPDDPC_API FPDDPC : public LogicDriver
  39. {
  40. Panel m_PanelInfo;
  41. std::string *m_pWorkpath;
  42. bool m_bReset;
  43. public:
  44. FPDDPC(void);
  45. virtual ~FPDDPC(void);
  46. /*virtual bool DpcEntry(ResDataObject &Configuration);
  47. virtual ResDataObject GetConnectionType();
  48. virtual bool Connect(ResDataObject &Connection);
  49. virtual bool Probe(ResDataObject &HardwareInfo);
  50. virtual bool SetWorkPath(const char *pWorkPath);
  51. virtual PVOID LoadLogicDevices();
  52. virtual void UnloadLogicDevices(PVOID p);
  53. virtual bool DisConnect();*/
  54. virtual bool DriverEntry(ResDataObject &Configuration);
  55. virtual bool Driver_Probe(ResDataObject &HardwareInfo);
  56. virtual bool SYSTEM_CALL SetDriverWorkPath(const char * PARAM_IN pWorkPath);
  57. virtual PVOID SYSTEM_CALL LoadDriver();//无根节点
  58. virtual void SYSTEM_CALL UnloadDriver();
  59. virtual bool SYSTEM_CALL OnHeartBeat();
  60. virtual bool Connect();
  61. virtual void DisConnect();
  62. //给硬件驱动设置Unique工作路径
  63. //如果是同一设备同一连接情况下,硬件多次接入,系统会保证工作路径是一样的.
  64. //连接后,单一硬件相关的数据要保存在此.
  65. virtual bool SYSTEM_CALL SetDeviceWorkPath(const char * PARAM_IN pWorkPath);
  66. //逻辑设备树的加载和卸载
  67. virtual PVOID SYSTEM_CALL LoadLogicDevices();
  68. virtual void SYSTEM_CALL UnloadLogicDevices();
  69. virtual bool Device_Probe(ResDataObject &HardwareInfo);
  70. };