// mod_FingerPrint.cpp : 定义 DLL 应用程序的导出函数。 // #include "stdafx.h" #include "mod_FingerPrint.h" void FingerPrintServerSession::Handle_GetDevInfo(SpReqAnsContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke GetDevInfo"); m_pEntity->GetDevInfo(ctx); } void FingerPrintServerSession::Handle_GetDevStatus(SpReqAnsContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke GetDevStatus"); m_pEntity->GetDevStatus(ctx); } void FingerPrintServerSession::Handle_GetImageAndFeature(SpReqAnsContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke GetImageAndFeature"); m_pEntity->GetImageAndFeature(ctx); } void FingerPrintServerSession::Handle_GetImageAndFeatureEx(SpReqAnsContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke GetImageAndFeatureEx"); m_pEntity->GetImageAndFeatureEx(ctx); } //有用接口:加入交易记录日志扫描动作 void FingerPrintServerSession::Handle_GetFingerPrint(SpReqAnsContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke GetFingerPrint"); m_pEntity->GetFingerPrint(ctx); } //有用接口:加入交易记录日志生成指纹模板 void FingerPrintServerSession::Handle_GenerateTemplate(SpReqAnsContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke GenerateTemplate"); m_pEntity->GenerateTemplate(ctx); } void FingerPrintServerSession::Handle_CancelRegister(SpOnewayCallContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke CancelRegister"); m_pEntity->CancelRegister(ctx); } void FingerPrintServerSession::Handle_CancelMatch(SpOnewayCallContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke CancelMatch"); m_pEntity->CancelMatch(ctx); } void FingerPrintServerSession::Handle_Match(SpReqAnsContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke CheckAndMatch"); m_pEntity->CheckAndMatch(ctx); } void FingerPrintServerSession::Handle_Exit(SpOnewayCallContext::Pointer ctx) { LOG_FUNCTION(); DbgToBeidou(ctx->link, __FUNCTION__)(); DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke Exit"); m_pEntity->Exit(ctx); } void CFingerPrintEntity::OnSysVarEvent(const char *pszKey, const char *pszValue, const char *pszOldValue, const char *pszEntityName) { if ((_strnicmp(pszKey, "UIState", strlen("UIState")) == 0)) { //增加页面位置判断 m_fsm.OnUIState4SetWhatPage(pszValue); } } SP_BEGIN_ENTITY_MAP() SP_ENTITY(CFingerPrintEntity) SP_END_ENTITY_MAP()