You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TwoLaserHead-PushJig/LaiPuLaser/Propertie.h

33 lines
1.0 KiB
C++

#pragma once
#include "GlobalDefine.h"
#include "EnumPropertieType.h"
class CModule;
//模块的属性
class CPropertie
{
public:
CPropertie();
~CPropertie();
void SetpVal(void *pVal){m_pVal = pVal;};
void * GetpVal() { return m_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 PropertyChangeVal(const COleVariant &OleVar);
void WriteRead(bool bRead);
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;//变量的名字
};