mod_IDCertificate.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #include "stdafx.h"
  2. #include "mod_IDCertificate.h"
  3. void IDCertServerSession::Handle_CancelRead(SpOnewayCallContext<IDCert_CancelRead_Info>::Pointer ctx)
  4. {
  5. DbgToBeidou(ctx->link, __FUNCTION__)();
  6. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_CancelRead");
  7. m_pEntity->CancelRead(ctx);
  8. }
  9. void IDCertServerSession::Handle_ReadWaitMore(SpOnewayCallContext<IDCert_ReadWaitMore_Info>::Pointer ctx)
  10. {
  11. DbgToBeidou(ctx->link, __FUNCTION__)();
  12. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_ReadWaitMore");
  13. m_pEntity->ReadWaitMore(ctx);
  14. }
  15. void IDCertServerSession::Handle_GetDevInfo(SpReqAnsContext<IDCert_GetDevInfo_Req, IDCert_GetDevInfo_Ans>::Pointer ctx)
  16. {
  17. DbgToBeidou(ctx->link, __FUNCTION__)();
  18. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_GetDevInfo");
  19. m_pEntity->GetDevInfo(ctx);
  20. }
  21. void IDCertServerSession::Handle_Exit(SpOnewayCallContext<IDCert_Exit_Info>::Pointer ctx)
  22. {
  23. DbgToBeidou(ctx->link, __FUNCTION__)();
  24. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_Exit");
  25. m_pEntity->Exit(ctx);
  26. }
  27. void IDCertServerSession::Handle_Eject(SpReqAnsContext<IDCert_Eject_Req, IDCert_Eject_Ans>::Pointer ctx)
  28. {
  29. DbgToBeidou(ctx->link, __FUNCTION__)();
  30. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_Eject");
  31. m_pEntity->Eject(ctx);
  32. }
  33. void IDCertServerSession::Handle_ReadAndScan(SpReqAnsContext<IDCert_ReadAndScan_Req, IDCert_ReadAndScan_Ans>::Pointer ctx)
  34. {
  35. DbgToBeidou(ctx->link, __FUNCTION__)();
  36. LOG_FUNCTION();
  37. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_ReadAndScan");
  38. m_pEntity->ReadAndScan(ctx);
  39. }
  40. void IDCertServerSession::Handle_ReadAndScanUTF8(SpReqAnsContext<IDCert_ReadAndScanUTF8_Req, IDCert_ReadAndScanUTF8_Ans>::Pointer ctx) //ex1
  41. {
  42. DbgToBeidou(ctx->link, __FUNCTION__)();
  43. LOG_FUNCTION();
  44. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_ReadAndScanUTF8");
  45. m_pEntity->ReadAndScanUTF8(ctx);
  46. }
  47. SP_BEGIN_ENTITY_MAP()
  48. SP_ENTITY(CIDCertEntity)
  49. SP_END_ENTITY_MAP()