Config.h 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_strRepeat; // È¥ÖØÎļþ¼Ð·¾¶
  32. CString m_strToken; // baidu token
  33. CString m_strCsvPath;
  34. CString m_strCsvFileDir;
  35. };
  36. #endif // !defined(AFX_CONFIG_H__FB63E5FE_85CD_4155_B44F_37652790F1D6__INCLUDED_)