mod_ScannerSet.cpp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // mod_HSPScanner.cpp : 定义 DLL 应用程序的导出函数。
  2. //
  3. #include "stdafx.h"
  4. #include "mod_ScannerSet.h"
  5. void ScannerServerSession::Handle_StartPreview(SpReqAnsContext<ScannerService_StartPreview_Req,
  6. ScannerService_StartPreview_Ans>::Pointer ctx)
  7. {
  8. DbgToBeidou(ctx->link, __FUNCTION__)();
  9. m_pEntity->Preview(ctx);
  10. }
  11. void ScannerServerSession::Handle_CancelPreview(SpReqAnsContext<ScannerService_CancelPreview_Req,
  12. ScannerService_CancelPreview_Ans>::Pointer ctx)
  13. {
  14. DbgToBeidou(ctx->link, __FUNCTION__)();
  15. m_pEntity->CancelPreview(ctx);
  16. }
  17. void ScannerServerSession::Handle_ScanImage(SpReqAnsContext<ScannerService_ScanImage_Req,
  18. ScannerService_ScanImage_Ans>::Pointer ctx)
  19. {
  20. DbgToBeidou(ctx->link, __FUNCTION__)();
  21. m_pEntity->ScanImage(ctx);
  22. }
  23. void ScannerServerSession::Handle_SetWindowPos(SpReqAnsContext<ScannerService_SetWindowPos_Req,
  24. ScannerService_SetWindowPos_Ans>::Pointer ctx)
  25. {
  26. DbgToBeidou(ctx->link, __FUNCTION__)();
  27. m_pEntity->SetWinPos(ctx);
  28. }
  29. void ScannerServerSession::Handle_SetProperty(SpReqAnsContext<ScannerService_SetProperty_Req, ScannerService_SetProperty_Ans>::Pointer ctx)
  30. {
  31. DbgToBeidou(ctx->link, __FUNCTION__)();
  32. m_pEntity->SetProperty(ctx);
  33. }
  34. void ScannerServerSession::Handle_ShowProperty(SpReqAnsContext<ScannerService_ShowProperty_Req,
  35. ScannerService_ShowProperty_Ans>::Pointer ctx)
  36. {
  37. DbgToBeidou(ctx->link, __FUNCTION__)();
  38. m_pEntity->ShowProperty(ctx);
  39. }
  40. void ScannerServerSession::Handle_GetDevStatus(SpReqAnsContext<ScannerService_GetDevStatus_Req,
  41. ScannerService_GetDevStatus_Ans>::Pointer ctx)
  42. {
  43. DbgToBeidou(ctx->link, __FUNCTION__)();
  44. m_pEntity->GetDevStatus(ctx);
  45. }
  46. void ScannerServerSession::Handle_CrossTermCall(SpReqAnsContext<ScannerService_CrossTermCall_Req, ScannerService_CrossTermCall_Ans>::Pointer ctx)
  47. {
  48. DbgToBeidou(ctx->link, __FUNCTION__)();
  49. m_pEntity->CrossTermCall(ctx);
  50. }
  51. void ScannerServerSession::Handle_CrossTermInvokeInfo(SpOnewayCallContext<ScannerService_CrossTermInvokeInfo_Info>::Pointer ctx)
  52. {
  53. DbgToBeidou(ctx->link, __FUNCTION__)();
  54. m_pEntity->CrossTermInvokeInfo(ctx);
  55. }
  56. void ScannerServerSession::Handle_GetDevInfo(SpReqAnsContext<ScannerService_GetDevInfo_Req,
  57. ScannerService_GetDevInfo_Ans>::Pointer ctx)
  58. {
  59. DbgToBeidou(ctx->link, __FUNCTION__)();
  60. m_pEntity->GetDevInfo(ctx);
  61. }
  62. void ScannerServerSession::Handle_GetOnlineCameras(SpReqAnsContext<ScannerService_GetOnlineCameras_Req,
  63. ScannerService_GetOnlineCameras_Ans>::Pointer ctx) {
  64. DbgToBeidou(ctx->link, __FUNCTION__)();
  65. m_pEntity->GetOnlineCameras(ctx);
  66. }
  67. void ScannerServerSession::Handle_Exit(SpOnewayCallContext<ScannerService_Exit_Info>::Pointer ctx)
  68. {
  69. DbgToBeidou(ctx->link, __FUNCTION__)();
  70. m_pEntity->Exit(ctx);
  71. }
  72. SP_BEGIN_ENTITY_MAP()
  73. SP_ENTITY(CScannerEntity)
  74. SP_END_ENTITY_MAP()