12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- // 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();
- m_pEntity->BindDevice(ctx);
- }
- void CPortableScannerServerSession::Handle_StartPreview(SpReqAnsContext<PortableScannerService_StartPreview_Req,
- PortableScannerService_StartPreview_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->Preview(ctx);
- }
- void CPortableScannerServerSession::Handle_CancelPreview(SpReqAnsContext<PortableScannerService_CancelPreview_Req,
- PortableScannerService_CancelPreview_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->CancelPreview(ctx);
- }
- void CPortableScannerServerSession::Handle_ScanImage(SpReqAnsContext<PortableScannerService_ScanImage_Req,
- PortableScannerService_ScanImage_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->ScanImage(ctx);
- }
- void CPortableScannerServerSession::Handle_ScanImageEx(SpReqAnsContext<PortableScannerService_ScanImageEx_Req,
- PortableScannerService_ScanImageEx_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->ScanImageEx(ctx);
- }
- void CPortableScannerServerSession::Handle_SetProperty(SpReqAnsContext<PortableScannerService_SetProperty_Req,
- PortableScannerService_SetProperty_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->SetProperty(ctx);
- }
- void CPortableScannerServerSession::Handle_SetWinPos(SpReqAnsContext<PortableScannerService_SetWinPos_Req,
- PortableScannerService_SetWinPos_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->SetWinPos(ctx);
- }
- void CPortableScannerServerSession::Handle_ShowProperty(SpReqAnsContext<PortableScannerService_ShowProperty_Req, PortableScannerService_ShowProperty_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->ShowProperty(ctx);
- }
- void CPortableScannerServerSession::Handle_GetDevStatus(SpReqAnsContext<PortableScannerService_GetDevStatus_Req,
- PortableScannerService_GetDevStatus_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->GetDevStatus(ctx);
- }
- void CPortableScannerServerSession::Handle_GetDevInfo(SpReqAnsContext<PortableScannerService_GetDevInfo_Req,
- PortableScannerService_GetDevInfo_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->GetDevInfo(ctx);
- }
- void CPortableScannerServerSession::Handle_Exit(SpOnewayCallContext<PortableScannerService_Exit_Info>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->Exit(ctx);
- }
- void CPortableScannerServerSession::Handle_DropOffDevice(
- SpOnewayCallContext<PortableScannerService_DropOffDevice_Info>::Pointer ctx)
- {
- LOG_FUNCTION();
- m_pEntity->DropOffDevice(ctx);
- }
- SP_BEGIN_ENTITY_MAP()
- SP_ENTITY(CPortableScannerEntity)
- SP_END_ENTITY_MAP()
|