123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- // mod_PortableScanner.cpp : 定义 DLL 应用程序的导出函数。
- //
- #include "stdafx.h"
- #include "mod_PortableScanner.h"
- void CPortableScannerServerSession::Handle_BindCameraDevice(
- SpReqAnsContext<PortableScannerService_BindCameraDevice_Req,
- PortableScannerService_BindCameraDevice_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->BindDevice(ctx);
- }
- void CPortableScannerServerSession::Handle_StartPreview(SpReqAnsContext<PortableScannerService_StartPreview_Req,
- PortableScannerService_StartPreview_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->Preview(ctx);
- }
- void CPortableScannerServerSession::Handle_CancelPreview(SpReqAnsContext<PortableScannerService_CancelPreview_Req,
- PortableScannerService_CancelPreview_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->CancelPreview(ctx);
- }
- void CPortableScannerServerSession::Handle_ScanImage(SpReqAnsContext<PortableScannerService_ScanImage_Req,
- PortableScannerService_ScanImage_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->ScanImage(ctx);
- }
- void CPortableScannerServerSession::Handle_ScanImageEx(SpReqAnsContext<PortableScannerService_ScanImageEx_Req,
- PortableScannerService_ScanImageEx_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->ScanImageEx(ctx);
- }
- void CPortableScannerServerSession::Handle_SetProperty(SpReqAnsContext<PortableScannerService_SetProperty_Req,
- PortableScannerService_SetProperty_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->SetProperty(ctx);
- }
- void CPortableScannerServerSession::Handle_SetWinPos(SpReqAnsContext<PortableScannerService_SetWinPos_Req,
- PortableScannerService_SetWinPos_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->SetWinPos(ctx);
- }
- void CPortableScannerServerSession::Handle_ShowProperty(SpReqAnsContext<PortableScannerService_ShowProperty_Req, PortableScannerService_ShowProperty_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->ShowProperty(ctx);
- }
- void CPortableScannerServerSession::Handle_GetDevStatus(SpReqAnsContext<PortableScannerService_GetDevStatus_Req,
- PortableScannerService_GetDevStatus_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->GetDevStatus(ctx);
- }
- void CPortableScannerServerSession::Handle_GetDevInfo(SpReqAnsContext<PortableScannerService_GetDevInfo_Req,
- PortableScannerService_GetDevInfo_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->GetDevInfo(ctx);
- }
- void CPortableScannerServerSession::Handle_Exit(SpOnewayCallContext<PortableScannerService_Exit_Info>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->Exit(ctx);
- }
- void CPortableScannerServerSession::Handle_DropOffDevice(
- SpOnewayCallContext<PortableScannerService_DropOffDevice_Info>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->DropOffDevice(ctx);
- }
- SP_BEGIN_ENTITY_MAP()
- SP_ENTITY(CPortableScannerEntity)
- SP_END_ENTITY_MAP()
|