RptParamFileMgr.h 839 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include "RptParamFile.h"
  3. namespace OTSMODEL
  4. {
  5. class __declspec(dllexport) CRptParamFileMgr
  6. {
  7. public:
  8. CRptParamFileMgr();
  9. ~CRptParamFileMgr();
  10. BOOL Save(OTS_SOFT_PACKAGE_ID a_nPackId);
  11. BOOL Load(OTS_SOFT_PACKAGE_ID a_nPackId);
  12. // Report param file pointer
  13. CRptParamFilePtr GetRptParamFile() { return m_poRptParamFile; }
  14. void SetRptParamFile(CRptParamFilePtr);
  15. // file pathname
  16. CString GetPathName() { return m_strPathName; }
  17. void SetPathName(CString a_strPathName) { m_strPathName = a_strPathName; }
  18. protected:
  19. // Report param file pointer
  20. CRptParamFilePtr m_poRptParamFile;
  21. // file pathname
  22. CString m_strPathName;
  23. // create
  24. BOOL Create(OTS_SOFT_PACKAGE_ID a_nPackId);
  25. void Init();
  26. };
  27. typedef std::shared_ptr<CRptParamFileMgr> __declspec(dllexport) CRptParamFileMgrPtr;
  28. }