📄 wtparameter.cpp
字号:
/*
* 文件名: WTParameter.cpp
*
* 作者: 施立虹
*
* 描述: 变量,用来绑定 sql 语句中的占位符
*
* 全局变量: 无
*
* 修订记录:
* 日期 修订者 修订描述
* 2004-06-16 施立虹 创建本文件
*/
// WTParameter.cpp: implementation of the CWTParameter class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "WTParameter.h"
#include "WTCommander.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CWTParameter::CWTParameter()
{
}
CWTParameter::~CWTParameter()
{
}
/*
* 函数名称: SetMark
* 编写者: 施立虹
* 功能: 设置占位符变量
* 输入参数: strMark
* 输出参数:
* 返回值: TRUE 或 FALSE
* 注意事项:
* 修订记录:
* 日期 修订者 修订描述
* 2004-06-16 施立虹 创建
*/
BOOL CWTParameter::SetMark(CString strMark)
{
m_strMark = strMark;
return TRUE;
}
/*
* 函数名称: Create
* 编写者: 施立虹
* 功能: 初始化对象
* 输入参数: valType,pDB,pError
* 输出参数:
* 返回值: TRUE 或 FALSE
* 注意事项:
* 修订记录:
* 日期 修订者 修订描述
* 2004-06-16 施立虹 创建
*/
CWTParameter& CWTParameter::operator=(const int &nValue)
{
m_dlVal = m_nVal = nValue;
return *this;
}
CWTParameter& CWTParameter::operator=(const long &lValue)
{
m_dlVal = m_lVal = lValue;
return *this;
}
CWTParameter& CWTParameter::operator=(const float &flValue)
{
m_dlVal = m_flVal = flValue;
return *this;
}
CWTParameter& CWTParameter::operator=(const double &dlValue)
{
m_dlVal = dlValue;
return *this;
}
CWTParameter& CWTParameter::operator=(const const char* pszValue)
{
m_strVal.Format("%s",pszValue);
return *this;
}
CWTParameter& CWTParameter::operator=(const CString &strValue)
{
m_strVal = strValue;
return *this;
}
CWTParameter& CWTParameter::operator = (const CGeometry &Geometry)
{
m_CGeotry = Geometry;
return *this;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -