atsvalue.h

来自「在你的程序中实现脚本功能,该脚本引擎名为AtScript , 是类似于VBScr」· C头文件 代码 · 共 48 行

H
48
字号
// AtsValue.h: interface for the CAtsValue class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ATSVALUE_H__BA27B697_5F9B_41D1_9B4F_4742741D696C__INCLUDED_)
#define AFX_ATSVALUE_H__BA27B697_5F9B_41D1_9B4F_4742741D696C__INCLUDED_

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

#include "afx.h"

/////////////////////////////////////////////////
// 值对象
/////////////////////////////////////////////////
class CAtsValue : public CObject  
{
public:
	CAtsValue();
	virtual ~CAtsValue();

	int			m_nType;
	double		m_dData;
	CString		m_strData;		// 字符串: 不含引号
	bool		m_bError;

	static BOOL IsNumType(int nType);
	BOOL		IsNum();
	BOOL		CmpData( CAtsValue *pValue );
	void		SetType( int nType );
	void		AddParamToFist( CAtsValue *pValue );
	void		AddData( CAtsValue *pValue);
	void		SubData( CAtsValue &Value );
	void		SetData( CString strData , bool bAutoType = true );
	CString		GetStrData();
	void		SetData( double dData , bool bAutoType = true );
	void		SetDataEx( CString strData , int nType );

	operator = ( const CAtsValue &Item );

	static void OptimizeByNum(CString &strData);
	static CString PrecisionByNum(CString strData, int nPrecision, BOOL bDelInvalidZero);
	static CString PrecisionByNum( double dData, int nPrecision, BOOL bDelInvalidZero);
};

#endif // !defined(AFX_ATSVALUE_H__BA27B697_5F9B_41D1_9B4F_4742741D696C__INCLUDED_)

⌨️ 快捷键说明

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