mostandardizer.cpp
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:3k
源码类别:

GIS编程

开发平台:

Visual C++

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  3. //  Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "mostandardizer.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CMoStandardizer properties
  8. BOOL CMoStandardizer::GetValid()
  9. {
  10. BOOL result;
  11. GetProperty(0x1, VT_BOOL, (void*)&result);
  12. return result;
  13. }
  14. void CMoStandardizer::SetValid(BOOL propVal)
  15. {
  16. SetProperty(0x1, VT_BOOL, propVal);
  17. }
  18. short CMoStandardizer::GetFieldCount()
  19. {
  20. short result;
  21. GetProperty(0x2, VT_I2, (void*)&result);
  22. return result;
  23. }
  24. void CMoStandardizer::SetFieldCount(short propVal)
  25. {
  26. SetProperty(0x2, VT_I2, propVal);
  27. }
  28. CString CMoStandardizer::GetStandardizingRules()
  29. {
  30. CString result;
  31. GetProperty(0x3, VT_BSTR, (void*)&result);
  32. return result;
  33. }
  34. void CMoStandardizer::SetStandardizingRules(LPCTSTR propVal)
  35. {
  36. SetProperty(0x3, VT_BSTR, propVal);
  37. }
  38. long CMoStandardizer::GetLastError()
  39. {
  40. long result;
  41. GetProperty(0x4, VT_I4, (void*)&result);
  42. return result;
  43. }
  44. void CMoStandardizer::SetLastError(long propVal)
  45. {
  46. SetProperty(0x4, VT_I4, propVal);
  47. }
  48. CString CMoStandardizer::GetIntersectionStandardizingRules()
  49. {
  50. CString result;
  51. GetProperty(0x5, VT_BSTR, (void*)&result);
  52. return result;
  53. }
  54. void CMoStandardizer::SetIntersectionStandardizingRules(LPCTSTR propVal)
  55. {
  56. SetProperty(0x5, VT_BSTR, propVal);
  57. }
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CMoStandardizer operations
  60. BOOL CMoStandardizer::StandardizeAddress(LPCTSTR address)
  61. {
  62. BOOL result;
  63. static BYTE parms[] =
  64. VTS_BSTR;
  65. InvokeHelper(0x6, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  66. address);
  67. return result;
  68. }
  69. CString CMoStandardizer::GetFieldName(short index)
  70. {
  71. CString result;
  72. static BYTE parms[] =
  73. VTS_I2;
  74. InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  75. index);
  76. return result;
  77. }
  78. CString CMoStandardizer::GetFieldValue(LPCTSTR FieldName)
  79. {
  80. CString result;
  81. static BYTE parms[] =
  82. VTS_BSTR;
  83. InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  84. FieldName);
  85. return result;
  86. }
  87. void CMoStandardizer::SetFieldValue(LPCTSTR FieldName, LPCTSTR lpszNewValue)
  88. {
  89. static BYTE parms[] =
  90. VTS_BSTR VTS_BSTR;
  91. InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  92.  FieldName, lpszNewValue);
  93. }