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.

27 lines
690 B
C++

#pragma once
#include "GlobalDefine.h"
#include "EnumValStrType.h"
class CValStrBase
{
public:
CValStrBase(void);
virtual ~CValStrBase(void);
virtual CValStrBase * Clone(){return NULL;};
virtual CString GetTypeStr(){return "";};
virtual void SetValStr(CString str){m_str = str;};
virtual void UpdateValStr(){};
public:
CString GetValStr();
CString GetValTypeStr();
void SetValStrType(VAL_STR_TYPR t){m_ValStrType = t;};
VAL_STR_TYPR GetValStrType(){return m_ValStrType;};
protected:
virtual CString GetStr(){return m_str;};
void AddLeftZreo(CString &str);
protected:
CString m_str;//文本内容
VAL_STR_TYPR m_ValStrType;//可变文本的类型
};