atsvaritem.h

来自「AtScript 1.1 一个很好用的脚本引擎,可以很方便的在你的软件中实现脚本」· C头文件 代码 · 共 48 行

H
48
字号
// AtVarItem.h: interface for the CAtsVarItem class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ATVARITEM_H__C9A509AF_558D_4B13_8D83_3908B87FE349__INCLUDED_)
#define AFX_ATVARITEM_H__C9A509AF_558D_4B13_8D83_3908B87FE349__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "AtsDef.h"
#include "AtsCommDef.h"
#include "AtsValue.h"
#include "AtsObj.h"
#include "AtsObjPtr.h"

class CAtsObject;

////////////////////////////////////////////////////
// 变量对象
// 系统变量以 @@ 开头
// 用户变量以 @  开头
// 对象变更没 @
////////////////////////////////////////////////////
class  CAtsVarItem : public CAtsObj  
{
public:
	CAtsVarItem();
	virtual ~CAtsVarItem();

	DWORD						m_nFlag;
	CAtsString					m_strName;
	CAtsValue					m_vData;
	
	int			GetVarType();
	void		GetValueData( CAtsValue *pValue );
	static int	GetVarType( CAtsString strType );
	LPCTSTR		GetDataToStr();
	void		SetData( CAtsVarItem *pSItem );
	void		SetData( CAtsValue *pData );
	void		SetValueName( LPCTSTR strNam , int nType );

	operator = ( const CAtsVarItem &Item );
};

#endif // !defined(AFX_ATVARITEM_H__C9A509AF_558D_4B13_8D83_3908B87FE349__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?