#pragma once #include "GlobalDefine.h" #include "EnumPropertieType.h" class CModule; //模块的属性 class CPropertie { friend class CPropertieMgr; public: CPropertie(); ~CPropertie(); void SetpVal(void *pVal){m_pVal = pVal;}; void SetType(PROPERTIE_TYPE Type){m_Type = Type;}; void SetpModule(CModule *pModule){m_pModule = pModule;}; void SetName(CString &Name){m_Name = Name;}; void SetPath(CString &Path){m_Path = Path;}; void SetGroupName(CString &s){m_GroupName = s;}; void SetShowName(CString &s){m_ShowName = s;}; void SetModuleName(CString &s){m_ModuleName = s;}; void PropertyChangeVal(const COleVariant &OleVar); void WriteRead(bool bRead); CString GetPropertieName(){return m_Name;}; void WriteToStream(ofstream &FileStream); private: void WriteToFile(CString &FileName); void ReadFromFile(CString &FileName); private: void * m_pVal;//变量内存地址 PROPERTIE_TYPE m_Type;//属性的类型 CModule* m_pModule;//变量所属模块变量的地址 CString m_Path;//存储路径 CString m_Name;//变量的名字 CString m_ModuleName;//模块名称 CString m_GroupName;//所属组的名字 CString m_ShowName;//显示的名字 };