OnlineResultHandler.h 1.0 KB

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "ResultHandler.h"
  3. //////////////////////////////////////////////////////////////////////////
  4. // author liulang
  5. // date 2020-04-24
  6. //////////////////////////////////////////////////////////////////////////
  7. namespace OnLineCard{
  8. class COnlineResultHandler : public CResultHandler
  9. {
  10. public:
  11. COnlineResultHandler();
  12. ~COnlineResultHandler();
  13. protected:
  14. virtual ServiceState OnStarting(void) override;
  15. virtual ServiceState OnRunning(void) override;
  16. int OnLineCardSavePage(OMR_RESULT * omr_result);
  17. CString MarkHttpHeaderData();
  18. int GetStudentInfo(CString paperIdStr, CString studentCard, int cardStatus, UnhandledPage& unhandled_page);
  19. void cutImage(IplImage* img, string strQuestionNo);
  20. virtual void SaveImages(vector<CUT_AREA_RESULT*> &area_results, CMemZipFile &zip, int subjectID, BOOL bOnlineCard = false,
  21. char *strPaperCode = NULL, const std::vector<std::string> &postMarkTypeIDVec = std::vector<std::string>(),
  22. std::map<std::string, int> &vecTwoPic = std::map<std::string, int>());
  23. BOOL m_stop;
  24. };
  25. }