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.

119 lines
1.3 KiB

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