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.

97 lines
2.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: GlobalData.cpp
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description: Implementation of the CGlobalData struct
  10. //
  11. // Author: tperraut
  12. //
  13. // Revision 03/22/2000 created
  14. //
  15. /////////////////////////////////////////////////////////////////////////////
  16. #include "stdafx.h"
  17. #include "GlobalData.h"
  18. #include "Attributes.h"
  19. #include "Clients.h"
  20. #include "DefaultProvider.h"
  21. #include "Objects.h"
  22. #include "ProfileAttributeList.h"
  23. #include "Profiles.h"
  24. #include "Properties.h"
  25. #include "Providers.h"
  26. #include "RADIUSAttributeValues.h"
  27. #include "Realms.h"
  28. #include "RemoteRadiusServers.h"
  29. #include "ServiceConfiguration.h"
  30. #include "Version.h"
  31. void CGlobalData::InitStandard(CSession& Session)
  32. {
  33. m_pObjects = new CObjects(Session);
  34. m_pProperties = new CProperties(Session);
  35. };
  36. void CGlobalData::InitRef(CSession& Session)
  37. {
  38. m_pRefObjects = new CObjects(Session);
  39. m_pRefProperties = new CProperties(Session);
  40. m_pRefVersion = new CVersion(Session);
  41. };
  42. void CGlobalData::InitNT4(CSession& Session)
  43. {
  44. m_pClients = new CClients(Session);
  45. m_pDefaultProvider = new CDefaultProvider(Session);
  46. m_pProfileAttributeList = new CProfileAttributeList(Session);
  47. m_pProfiles = new CProfiles(Session);
  48. m_pProviders = new CProviders(Session);
  49. m_pRADIUSAttributeValues= new CRADIUSAttributeValues(Session);
  50. m_pRadiusServers = new CRemoteRadiusServers(Session);
  51. m_pRealms = new CRealms(Session);
  52. m_pServiceConfiguration = new CServiceConfiguration(Session);
  53. }
  54. void CGlobalData::InitDnary(CSession& Session)
  55. {
  56. m_pAttributes = new CAttributes(Session);
  57. };
  58. void CGlobalData::Clean() throw()
  59. {
  60. delete m_pAttributes;
  61. m_pAttributes = NULL;
  62. delete m_pClients;
  63. m_pClients = NULL;
  64. delete m_pDefaultProvider;
  65. m_pDefaultProvider = NULL;
  66. delete m_pObjects;
  67. m_pObjects = NULL;
  68. delete m_pProfiles;
  69. m_pProfiles = NULL;
  70. delete m_pProfileAttributeList;
  71. m_pProfileAttributeList = NULL;
  72. delete m_pProperties;
  73. m_pProperties = NULL;
  74. delete m_pProviders;
  75. m_pProviders = NULL;
  76. delete m_pRADIUSAttributeValues;
  77. m_pRADIUSAttributeValues = NULL;
  78. delete m_pRadiusServers;
  79. m_pRadiusServers = NULL;
  80. delete m_pRealms;
  81. m_pRealms = NULL;
  82. delete m_pRefObjects;
  83. m_pRefObjects = NULL;
  84. delete m_pRefProperties;
  85. m_pRefProperties = NULL;
  86. delete m_pRefVersion;
  87. m_pRefVersion = NULL;
  88. delete m_pServiceConfiguration;
  89. m_pServiceConfiguration = NULL;
  90. };