Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
1.8 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: locationex.inl
  4. // Copyright (C) 1999-1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. inline
  11. void
  12. CLocationEx::AssignFrom(
  13. const CLocationEx &rhs)
  14. {
  15. CLocation::AssignFrom(rhs);
  16. m_dbidDialog = rhs.m_dbidDialog;
  17. m_lRRIVersion = rhs.m_lRRIVersion;
  18. m_strRuntimeStateString = rhs.m_strRuntimeStateString;
  19. }
  20. inline
  21. CLocationEx::CLocationEx()
  22. : m_lRRIVersion(0)
  23. {
  24. }
  25. inline
  26. CLocationEx::CLocationEx(const CLocationEx &rlocex)
  27. {
  28. AssignFrom(rlocex);
  29. }
  30. inline
  31. CLocationEx::CLocationEx(
  32. const CGlobalId &rid,
  33. View v,
  34. TabId t,
  35. Component c,
  36. const DBID &rdbidDialog,
  37. long lRRIVersion)
  38. : CLocation(rid, v, t, c)
  39. , m_dbidDialog(rdbidDialog)
  40. , m_lRRIVersion(lRRIVersion)
  41. {
  42. }
  43. inline
  44. CLocationEx::CLocationEx(
  45. const DBID &rdbid,
  46. ObjectType ot,
  47. View v,
  48. TabId t,
  49. Component c,
  50. const DBID &rdbidDialog,
  51. long lRRIVersion)
  52. : CLocation(rdbid, ot, v, t, c)
  53. , m_dbidDialog(rdbidDialog)
  54. , m_lRRIVersion(lRRIVersion)
  55. {
  56. }
  57. inline
  58. CLocationEx::CLocationEx(
  59. const DBID &rdbid,
  60. ObjectType ot,
  61. View v,
  62. TabId t,
  63. Component c,
  64. const DBID &rdbidDialog,
  65. const CLString& rstrRuntimeStateString)
  66. : CLocation(rdbid, ot, v, t, c)
  67. , m_dbidDialog(rdbidDialog)
  68. , m_lRRIVersion(0)
  69. , m_strRuntimeStateString(rstrRuntimeStateString)
  70. {
  71. }
  72. inline
  73. const CLocationEx &
  74. CLocationEx::operator=(const CLocationEx &rhs)
  75. {
  76. AssignFrom(rhs);
  77. return *this;
  78. }
  79. inline
  80. const DBID&
  81. CLocationEx::GetDialogDbid() const
  82. {
  83. return m_dbidDialog;
  84. }
  85. inline
  86. long
  87. CLocationEx::GetRRIVersion() const
  88. {
  89. return m_lRRIVersion;
  90. }
  91. inline
  92. const CLString&
  93. CLocationEx::GetRuntimeStateString() const
  94. {
  95. return m_strRuntimeStateString;
  96. }