sodataset.cpp

来自「用VC+SuperMap开发的校园GIS系统」· C++ 代码 · 共 177 行

CPP
177
字号
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


#include "stdafx.h"
#include "sodataset.h"

// Dispatch interfaces referenced by this interface
#include "sorect.h"


/////////////////////////////////////////////////////////////////////////////
// CsoDataset properties

BOOL CsoDataset::GetCanUpdate()
{
	BOOL result;
	GetProperty(0x1, VT_BOOL, (void*)&result);
	return result;
}

void CsoDataset::SetCanUpdate(BOOL propVal)
{
	SetProperty(0x1, VT_BOOL, propVal);
}

CsoRect CsoDataset::GetBounds()
{
	LPDISPATCH pDispatch;
	GetProperty(0x2, VT_DISPATCH, (void*)&pDispatch);
	return CsoRect(pDispatch);
}

void CsoDataset::SetBounds(LPDISPATCH propVal)
{
	SetProperty(0x2, VT_DISPATCH, propVal);
}

DATE CsoDataset::GetDateCreated()
{
	DATE result;
	GetProperty(0x3, VT_DATE, (void*)&result);
	return result;
}

void CsoDataset::SetDateCreated(DATE propVal)
{
	SetProperty(0x3, VT_DATE, propVal);
}

DATE CsoDataset::GetDateLastUpdated()
{
	DATE result;
	GetProperty(0x4, VT_DATE, (void*)&result);
	return result;
}

void CsoDataset::SetDateLastUpdated(DATE propVal)
{
	SetProperty(0x4, VT_DATE, propVal);
}

CString CsoDataset::GetName()
{
	CString result;
	GetProperty(0x5, VT_BSTR, (void*)&result);
	return result;
}

void CsoDataset::SetName(LPCTSTR propVal)
{
	SetProperty(0x5, VT_BSTR, propVal);
}

long CsoDataset::GetType()
{
	long result;
	GetProperty(0x6, VT_I4, (void*)&result);
	return result;
}

void CsoDataset::SetType(long propVal)
{
	SetProperty(0x6, VT_I4, propVal);
}

BOOL CsoDataset::GetVector()
{
	BOOL result;
	GetProperty(0x7, VT_BOOL, (void*)&result);
	return result;
}

void CsoDataset::SetVector(BOOL propVal)
{
	SetProperty(0x7, VT_BOOL, propVal);
}

CString CsoDataset::GetDataSourceAlias()
{
	CString result;
	GetProperty(0x8, VT_BSTR, (void*)&result);
	return result;
}

void CsoDataset::SetDataSourceAlias(LPCTSTR propVal)
{
	SetProperty(0x8, VT_BSTR, propVal);
}

CString CsoDataset::GetDescription()
{
	CString result;
	GetProperty(0x9, VT_BSTR, (void*)&result);
	return result;
}

void CsoDataset::SetDescription(LPCTSTR propVal)
{
	SetProperty(0x9, VT_BSTR, propVal);
}

double CsoDataset::GetMaxZ()
{
	double result;
	GetProperty(0xa, VT_R8, (void*)&result);
	return result;
}

void CsoDataset::SetMaxZ(double propVal)
{
	SetProperty(0xa, VT_R8, propVal);
}

double CsoDataset::GetMinZ()
{
	double result;
	GetProperty(0xb, VT_R8, (void*)&result);
	return result;
}

void CsoDataset::SetMinZ(double propVal)
{
	SetProperty(0xb, VT_R8, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CsoDataset operations

BOOL CsoDataset::ComputeBounds()
{
	BOOL result;
	InvokeHelper(0xc, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
	return result;
}

long CsoDataset::GetSmObject()
{
	long result;
	InvokeHelper(0xd, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

BOOL CsoDataset::Open()
{
	BOOL result;
	InvokeHelper(0xe, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
	return result;
}

void CsoDataset::Close()
{
	InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

⌨️ 快捷键说明

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