mod_IDCertificate.cpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_CancelReadJS(SpReqAnsContext<IDCert_CancelReadJS_Req, IDCert_CancelReadJS_Ans>::Pointer ctx)
  10. {
  11. DbgToBeidou(ctx->link, __FUNCTION__)();
  12. LOG_FUNCTION();
  13. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_CancelReadJS");
  14. m_pEntity->CancelReadJS(ctx);
  15. }
  16. void IDCertServerSession::Handle_Exit(SpOnewayCallContext<IDCert_Exit_Info>::Pointer ctx)
  17. {
  18. DbgToBeidou(ctx->link, __FUNCTION__)();
  19. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_Exit");
  20. m_pEntity->Exit(ctx);
  21. }
  22. void IDCertServerSession::Handle_GetDevInfo(SpReqAnsContext<IDCert_GetDevInfo_Req, IDCert_GetDevInfo_Ans>::Pointer ctx)
  23. {
  24. DbgToBeidou(ctx->link, __FUNCTION__)();
  25. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_GetDevInfo");
  26. m_pEntity->GetDevInfo(ctx);
  27. }
  28. void IDCertServerSession::Handle_ReadAndScanUTF8(SpReqAnsContext<IDCert_ReadAndScanUTF8_Req, IDCert_ReadAndScanUTF8_Ans>::Pointer ctx) //ex1
  29. {
  30. DbgToBeidou(ctx->link, __FUNCTION__)();
  31. LOG_FUNCTION();
  32. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_ReadAndScanUTF8");
  33. m_pEntity->ReadAndScanUTF8(ctx);
  34. }
  35. void IDCertServerSession::Handle_ReadAndScanUTF8JS(SpReqAnsContext<IDCert_ReadAndScanUTF8JS_Req, IDCert_ReadAndScanUTF8JS_Ans>::Pointer ctx) //ex1
  36. {
  37. DbgToBeidou(ctx->link, __FUNCTION__)();
  38. LOG_FUNCTION();
  39. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_ReadAndScanUTF8JS");
  40. m_pEntity->ReadAndScanUTF8JS(ctx);
  41. }
  42. SP_BEGIN_ENTITY_MAP()
  43. SP_ENTITY(CIDCertEntity)
  44. SP_END_ENTITY_MAP()