#pragma once #include "GlobalDefine.h" class CPropertie; //所有模块--属性的映射管理 class CPropertieMgr { public: CPropertieMgr(void); ~CPropertieMgr(void); void Insert(CMFCPropertyGridProperty* p1,CPropertie* p2); void OnPropertyChanged(LPARAM lParam); void DelAllPropertie(); void SetSaveAllPropertie(bool b){m_bSaveAllPropertie = b;}; void SavePropertieByName(vector &PropertieNameVec); void SaveAllPropertieToTxtFile(CString FilePath); private: void DelAllPropertieVec(); private: map m_PropertieValMap;//保存变量和属性映射的容器 bool m_bSaveAllPropertie;//保存所有需要存储的属性 vector m_AllPropertieVec;//保存所有需要存储的属性(用来强制保存属性) }; extern CPropertieMgr gDevicePropertieMgr; extern CPropertieMgr gDrawPropertieMgr;//绘制属性管理