Config.h 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Config.h: interface for the CConfig class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CONFIG_H__FB63E5FE_85CD_4155_B44F_37652790F1D6__INCLUDED_)
  5. #define AFX_CONFIG_H__FB63E5FE_85CD_4155_B44F_37652790F1D6__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include <string>
  10. #include <map>
  11. using namespace std;
  12. class CConfig
  13. {
  14. public:
  15. static CConfig* Instance(){return &s_Config;}
  16. ~CConfig() {};
  17. public:
  18. static CString GetAppPath();
  19. BOOL SaveSetting();
  20. BOOL LoadFromINI();
  21. BOOL SaveToINI();
  22. protected:
  23. CConfig();
  24. static CConfig s_Config;
  25. public:
  26. CString m_strTxt;
  27. CString m_strPdf;
  28. CString m_strMode;
  29. CString m_strImg;
  30. CString m_strCut;
  31. CString m_strToken; // baidu token
  32. };
  33. #endif // !defined(AFX_CONFIG_H__FB63E5FE_85CD_4155_B44F_37652790F1D6__INCLUDED_)