#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(); m_result_handler = boost::make_shared(); m_result_handler->m_nOnlineScanType = m_nOnlineScanType; m_student_matcher = boost::make_shared(); 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(m_identifor.get()))->SetTemplate(pT); } }