mod_IDCertificate.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_GetDevInfo(SpReqAnsContext<IDCert_GetDevInfo_Req, IDCert_GetDevInfo_Ans>::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_GetDevInfo");
  20. m_pEntity->GetDevInfo(ctx);
  21. }
  22. void IDCertServerSession::Handle_ReadAndScanUTF8(SpReqAnsContext<IDCert_ReadAndScanUTF8_Req, IDCert_ReadAndScanUTF8_Ans>::Pointer ctx) //ex1
  23. {
  24. DbgToBeidou(ctx->link, __FUNCTION__)();
  25. LOG_FUNCTION();
  26. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_ReadAndScanUTF8");
  27. m_pEntity->ReadAndScanUTF8(ctx);
  28. }
  29. void IDCertServerSession::Handle_ReadAndScanUTF8JS(SpReqAnsContext<IDCert_ReadAndScanUTF8JS_Req, IDCert_ReadAndScanUTF8JS_Ans>::Pointer ctx) //ex1
  30. {
  31. DbgToBeidou(ctx->link, __FUNCTION__)();
  32. LOG_FUNCTION();
  33. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Handle_ReadAndScanUTF8JS");
  34. m_pEntity->ReadAndScanUTF8JS(ctx);
  35. }
  36. SP_BEGIN_ENTITY_MAP()
  37. SP_ENTITY(CIDCertEntity)
  38. SP_END_ENTITY_MAP()