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.

118 lines
1.6 KiB

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