sodatapump.cpp
来自「用VC+SuperMap开发的校园GIS系统」· C++ 代码 · 共 80 行
CPP
80 行
// 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 "sodatapump.h"
// Dispatch interfaces referenced by this interface
#include "soimportparams.h"
#include "soexportparams.h"
#include "sostrings.h"
#include "sopjcoordsys.h"
/////////////////////////////////////////////////////////////////////////////
// CsoDataPump properties
CsoImportParams CsoDataPump::GetDataImportParams()
{
LPDISPATCH pDispatch;
GetProperty(0x17, VT_DISPATCH, (void*)&pDispatch);
return CsoImportParams(pDispatch);
}
void CsoDataPump::SetDataImportParams(LPDISPATCH propVal)
{
SetProperty(0x17, VT_DISPATCH, propVal);
}
CsoExportParams CsoDataPump::GetDataExportParams()
{
LPDISPATCH pDispatch;
GetProperty(0x18, VT_DISPATCH, (void*)&pDispatch);
return CsoExportParams(pDispatch);
}
void CsoDataPump::SetDataExportParams(LPDISPATCH propVal)
{
SetProperty(0x18, VT_DISPATCH, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoDataPump operations
BOOL CsoDataPump::Import()
{
BOOL result;
InvokeHelper(0x19, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CsoDataPump::Export()
{
BOOL result;
InvokeHelper(0x1a, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
CsoStrings CsoDataPump::RetrieveLayerInfo(LPCTSTR strFileName, long nFileType)
{
LPDISPATCH pDispatch;
static BYTE parms[] =
VTS_BSTR VTS_I4;
InvokeHelper(0x1b, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
strFileName, nFileType);
return CsoStrings(pDispatch);
}
CsoPJCoordSys CsoDataPump::RetrievePJCoordSys(LPCTSTR strFileName, long nFileType)
{
LPDISPATCH pDispatch;
static BYTE parms[] =
VTS_BSTR VTS_I4;
InvokeHelper(0x1c, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
strFileName, nFileType);
return CsoPJCoordSys(pDispatch);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?