123456789101112131415161718192021222324252627282930313233 |
- #include "stdafx.h"
- #include "OnlineCardIdentifyService.h"
- #include "OnlineCardIdentifor.h"
- #include "OnlineResultHandler.h"
- #include "OnlineCardStudentMatcher.h"
- namespace OnLineCard{
- COnlineCardIdentifyService::COnlineCardIdentifyService(CBatchService *batchService)
- :CIdentifyService(batchService)
- {
- }
- COnlineCardIdentifyService::~COnlineCardIdentifyService()
- {
- }
- void COnlineCardIdentifyService::InitService()
- {
- m_identifor = boost::make_shared<COnlineCardIdentifor>();
- m_result_handler = boost::make_shared<COnlineResultHandler>();
- m_result_handler->m_nOnlineScanType = m_nOnlineScanType;
- m_student_matcher = boost::make_shared<COnlineCardStudentMatcher>();
- m_student_matcher->m_nOnlineScanType = m_nOnlineScanType;
- m_identifor->IdentifyTaskManager(taskManager.get());
- m_identifor->SetOnlineScanType(m_nOnlineScanType);
- m_result_handler->IdentifyTaskManager(taskManager.get());
-
- }
- void COnlineCardIdentifyService::SetTemplate(PaperTemplate*pT)
- {
- (static_cast<COnlineCardIdentifor*>(m_identifor.get()))->SetTemplate(pT);
- }
- }
|