Leaked source code of windows server 2003
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.

116 lines
1.8 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: context.inl
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. inline
  11. CContext::CContext()
  12. {}
  13. inline
  14. CContext::CContext(
  15. const CContext & context)
  16. : m_strContext(context.m_strContext), m_loc(context.m_loc)
  17. {}
  18. inline
  19. CContext::CContext(
  20. const CLString &strContext)
  21. : m_strContext(strContext)
  22. {}
  23. inline
  24. CContext::CContext(
  25. HINSTANCE hDll,
  26. UINT uiStringID)
  27. : m_strContext(hDll, uiStringID)
  28. {}
  29. inline
  30. CContext::CContext(
  31. const CLString &strContext,
  32. const CLocation &loc)
  33. : m_strContext(strContext), m_loc(loc)
  34. {}
  35. inline
  36. CContext::CContext(
  37. const CLString &strContext,
  38. const DBID &dbid,
  39. ObjectType ot,
  40. View view,
  41. TabId tabid,
  42. Component component)
  43. : m_strContext(strContext), m_loc(dbid, ot, view, tabid, component)
  44. {}
  45. inline
  46. CContext::CContext(
  47. HINSTANCE hDll,
  48. UINT uiStringID,
  49. const CLocation &loc)
  50. : m_strContext(hDll, uiStringID), m_loc(loc)
  51. {}
  52. inline
  53. CContext::CContext(
  54. HINSTANCE hDll,
  55. UINT uiStringID,
  56. const DBID & dbid,
  57. ObjectType ot,
  58. View view,
  59. TabId tabid,
  60. Component component)
  61. : m_strContext(hDll, uiStringID),
  62. m_loc(dbid, ot, view, tabid, component)
  63. {}
  64. inline
  65. const CLString &
  66. CContext::GetContext(void) const
  67. {
  68. return m_strContext;
  69. }
  70. inline
  71. const CLocation &
  72. CContext::GetLocation(void)
  73. const
  74. {
  75. return m_loc;
  76. }
  77. inline
  78. const
  79. CContext &
  80. CContext::operator=(const CContext & context)
  81. {
  82. m_strContext = context.m_strContext;
  83. m_loc = context.m_loc;
  84. return *this;
  85. }