#pragma once #include "identifydll_global.h" #include "basic_struct.h" #include #include #include "ThreadPool.h" class CImgUploader; class SMARTEVALUATIONLOGIC_API CImgUploadManager { template friend class boost::shared_ptr; template friend inline void boost::checked_delete(T *); public: static boost::shared_ptr GetInstance(); public: CImgUploadManager(); ~CImgUploadManager(); /************************************************************************/ /* ¨¦¨¨??¨º??¨ª¨ª???¨¦?¡ä????¡é¡¤¦Ì??¡ä¡ã?¨²??¡À¨² */ /************************************************************************/ int SetHandlerWndForImg(HWND hwnd); /************************************************************************/ /* ?a¨º?¨º??¨ª¨ª???¨¦?¡ä? */ /************************************************************************/ int StartUploadePaperImg(); /************************************************************************/ /* ¨ª¡ê?1¨º??¨ª¨ª???¨¦?¡ä? */ /************************************************************************/ int StopUploadePaperImg(); /************************************************************************/ /* 2¨¦?¡¥¨º??¨ª¨ª???¨¦?¡ä?¨¨??? */ /************************************************************************/ int QueryUploadePaperImg(std::vector& tasks); /************************************************************************/ /* 2¨¦?¡¥¦Ì¡À?¡ã¨º??¨ª¨ª???¨¦?¡ä?¨¨??? */ /************************************************************************/ int GetCurrentUploadTaskInfo(IMG_UPLOAD_TASK& task); /************************************************************************/ /* ????¨°?¨¦?¡ä?¨ª¨º3¨¦¦Ì?¨ºy?Y */ /************************************************************************/ int ClearUploadedPaperImg(); /************************************************************************/ /* ???¨¹¨º?¡Àe */ /************************************************************************/ int AiReadImgPaper(int subject, int id, std::vector aiVec, const std::vector imgPath, std::vector> &retList); const boost::shared_ptr& GetImgUploader(); ThreadPool *getThreadPool(); ThreadPool m_threadPool; void logForDbg(std::string strLog); private: boost::shared_ptr imgUploader_; };