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.

117 lines
1.4 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: optvalset.inl
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. inline
  11. void
  12. CLocOptionValSet::AddOption(
  13. CLocOptionVal *pOption)
  14. {
  15. m_olOptions.AddTail(pOption);
  16. }
  17. inline
  18. void
  19. CLocOptionValSet::AddOptionSet(
  20. CLocOptionValSet *pOptionSet)
  21. {
  22. m_oslSubOptions.AddTail(pOptionSet);
  23. }
  24. inline
  25. void
  26. CLocOptionValSet::SetName(
  27. const CLString &strName)
  28. {
  29. m_strName = strName;
  30. }
  31. inline
  32. const CLocOptionValList &
  33. CLocOptionValSet::GetOptionList(void)
  34. const
  35. {
  36. return m_olOptions;
  37. }
  38. inline
  39. const CLocOptionValSetList &
  40. CLocOptionValSet::GetOptionSets(void)
  41. const
  42. {
  43. return m_oslSubOptions;
  44. }
  45. inline
  46. const CLString &
  47. CLocOptionValSet::GetName(void)
  48. const
  49. {
  50. return m_strName;
  51. }
  52. inline
  53. BOOL
  54. CLocOptionValSet::IsEmpty(void)
  55. const
  56. {
  57. return m_olOptions.IsEmpty() && m_oslSubOptions.IsEmpty();
  58. }
  59. inline
  60. void *
  61. CLocOptionValSet::GetPExtra(void)
  62. const
  63. {
  64. return m_pExtra;
  65. }
  66. inline
  67. DWORD
  68. CLocOptionValSet::GetDWExtra(void)
  69. const
  70. {
  71. return m_dwExtra;
  72. }
  73. inline
  74. void
  75. CLocOptionValSet::SetExtra(
  76. void *pExtra)
  77. {
  78. m_pExtra = pExtra;
  79. }
  80. inline
  81. void
  82. CLocOptionValSet::SetExtra(
  83. DWORD dwExtra)
  84. {
  85. m_dwExtra = dwExtra;
  86. }