⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atsvalue.h

📁 在你的程序中实现脚本功能,该脚本引擎名为AtScript , 是类似于VBScript 的语法, 在一些比VBScript 更好用,更方便,性能更高,而且容易扩展,无需组件环境,
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -