UnZipService.h 766 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <afxwin.h>
  3. #include <string>
  4. #include <iostream>
  5. #include <fstream>
  6. #include <sstream>
  7. #include "DataBaseService.h"
  8. #include <map>
  9. #include <vector>
  10. using namespace std;
  11. class CUnZipService
  12. {
  13. public:
  14. CUnZipService(const wstring& _indexdbpath, const wstring& _batchdbpath,
  15. const wstring& _iamgepath, const wstring& _workpath,
  16. const wstring& _sharefilename, const wstring& _sharefilepath);
  17. CUnZipService(const wstring& _indexdbpath, vector<int>& vct);
  18. ~CUnZipService();
  19. bool ParseImageDir(int& last_id);
  20. void InsertBatchFail(int state, int zipfile_cnt);
  21. void InsertBatchInfo(); // Ïòbatch.db3Êý¾Ý¿âbatchinfo±í²åÈëÊý¾Ý
  22. private:
  23. void InitDirectory();
  24. int GetLastIndex();
  25. wstring m_strIamgePath;
  26. wstring m_strWorkPath;
  27. };