sodynamiceventlocator.cpp
来自「SuperMap的网络分析示范源码」· C++ 代码 · 共 169 行
CPP
169 行
// 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 "sodynamiceventlocator.h"
// Dispatch interfaces referenced by this interface
#include "sogeometry.h"
/////////////////////////////////////////////////////////////////////////////
// CsoDynamicEventLocator properties
CString CsoDynamicEventLocator::GetEventRouteIDField()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetEventRouteIDField(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}
long CsoDynamicEventLocator::GetDynamicEventType()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetDynamicEventType(long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
CString CsoDynamicEventLocator::GetFromMeasureField()
{
CString result;
GetProperty(0x3, VT_BSTR, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetFromMeasureField(LPCTSTR propVal)
{
SetProperty(0x3, VT_BSTR, propVal);
}
CString CsoDynamicEventLocator::GetToMeasureField()
{
CString result;
GetProperty(0x4, VT_BSTR, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetToMeasureField(LPCTSTR propVal)
{
SetProperty(0x4, VT_BSTR, propVal);
}
CString CsoDynamicEventLocator::GetMeasureField()
{
CString result;
GetProperty(0x5, VT_BSTR, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetMeasureField(LPCTSTR propVal)
{
SetProperty(0x5, VT_BSTR, propVal);
}
long CsoDynamicEventLocator::GetEventMeasureUnit()
{
long result;
GetProperty(0x6, VT_I4, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetEventMeasureUnit(long propVal)
{
SetProperty(0x6, VT_I4, propVal);
}
LPDISPATCH CsoDynamicEventLocator::GetRouteDataset()
{
LPDISPATCH result;
GetProperty(0x7, VT_DISPATCH, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetRouteDataset(LPDISPATCH propVal)
{
SetProperty(0x7, VT_DISPATCH, propVal);
}
CString CsoDynamicEventLocator::GetRouteIDField()
{
CString result;
GetProperty(0x8, VT_BSTR, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetRouteIDField(LPCTSTR propVal)
{
SetProperty(0x8, VT_BSTR, propVal);
}
CString CsoDynamicEventLocator::GetOffsetField()
{
CString result;
GetProperty(0x9, VT_BSTR, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetOffsetField(LPCTSTR propVal)
{
SetProperty(0x9, VT_BSTR, propVal);
}
CString CsoDynamicEventLocator::GetRouteWhereClause()
{
CString result;
GetProperty(0xa, VT_BSTR, (void*)&result);
return result;
}
void CsoDynamicEventLocator::SetRouteWhereClause(LPCTSTR propVal)
{
SetProperty(0xa, VT_BSTR, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoDynamicEventLocator operations
CsoGeometry CsoDynamicEventLocator::LocateLine(long nRouteID, double dFromMeasure, double dToMeasure)
{
LPDISPATCH pDispatch;
static BYTE parms[] =
VTS_I4 VTS_R8 VTS_R8;
InvokeHelper(0xc, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
nRouteID, dFromMeasure, dToMeasure);
return CsoGeometry(pDispatch);
}
CsoGeometry CsoDynamicEventLocator::LocatePoint(long nRouteID, double dMeasure, double dOffset)
{
LPDISPATCH pDispatch;
static BYTE parms[] =
VTS_I4 VTS_R8 VTS_R8;
InvokeHelper(0xd, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
nRouteID, dMeasure, dOffset);
return CsoGeometry(pDispatch);
}
CsoGeometry CsoDynamicEventLocator::LocateRow(long nRowID)
{
LPDISPATCH pDispatch;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xe, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
nRowID);
return CsoGeometry(pDispatch);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?