1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #pragma once
- #include "identifydll_global.h"
- #include "basic_struct.h"
- #include <vector>
- #include <boost/smart_ptr.hpp>
- #include "ThreadPool.h"
- class CImgUploader;
- class SMARTEVALUATIONLOGIC_API CImgUploadManager
- {
- template<class T> friend class boost::shared_ptr;
- template<class T> friend inline void boost::checked_delete(T *);
- public:
- static boost::shared_ptr<CImgUploadManager> GetInstance();
- public:
- CImgUploadManager();
- ~CImgUploadManager();
- /************************************************************************/
- /* éè??ê??íí???é?′????¢·μ??′°?ú??±ú */
- /************************************************************************/
- int SetHandlerWndForImg(HWND hwnd);
- /************************************************************************/
- /* ?aê?ê??íí???é?′? */
- /************************************************************************/
- int StartUploadePaperImg();
- /************************************************************************/
- /* í£?1ê??íí???é?′? */
- /************************************************************************/
- int StopUploadePaperImg();
- /************************************************************************/
- /* 2é?ˉê??íí???é?′?è??? */
- /************************************************************************/
- int QueryUploadePaperImg(std::vector<IMG_UPLOAD_TASK>& tasks);
- /************************************************************************/
- /* 2é?ˉμ±?°ê??íí???é?′?è??? */
- /************************************************************************/
- int GetCurrentUploadTaskInfo(IMG_UPLOAD_TASK& task);
- /************************************************************************/
- /* ????ò?é?′?íê3éμ?êy?Y */
- /************************************************************************/
- int ClearUploadedPaperImg();
- /************************************************************************/
- /* ???üê?±e */
- /************************************************************************/
- int AiReadImgPaper(int subject, int id, std::vector<questionAi> aiVec, const std::vector<CString> imgPath, std::vector<std::vector<AI_RET_RECT2>> &retList);
- const boost::shared_ptr<CImgUploader>& GetImgUploader();
- ThreadPool *getThreadPool();
- ThreadPool m_threadPool;
- void logForDbg(std::string strLog);
- private:
- boost::shared_ptr<CImgUploader> imgUploader_;
- };
|