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.

48 lines
1.4 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: ProxyServerGroupCollection.h
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description: Declaration of the CProxyServerGroupCollection class
  10. //
  11. // Author: tperraut
  12. //
  13. // Revision 02/24/2000 created
  14. //
  15. /////////////////////////////////////////////////////////////////////////////
  16. #ifndef _PROXYSERVERGROUPCOLLECTION_H_195CF33C_8382_4462_A4EF_CCEAFCC4E4D8
  17. #define _PROXYSERVERGROUPCOLLECTION_H_195CF33C_8382_4462_A4EF_CCEAFCC4E4D8
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. #include "proxyserversgrouphelper.h"
  22. #include <map>
  23. #include "nocopy.h"
  24. using namespace std;
  25. typedef map<_bstr_t, CProxyServersGroupHelper> ServerGroupMap;
  26. class CProxyServerGroupCollection : private NonCopyable
  27. {
  28. protected:
  29. CProxyServerGroupCollection(){};
  30. public:
  31. static CProxyServerGroupCollection& Instance();
  32. void Persist();
  33. CProxyServersGroupHelper* Add(
  34. CProxyServersGroupHelper& ServerGroup
  35. );
  36. private:
  37. static CProxyServerGroupCollection _instance;
  38. ServerGroupMap m_ServerGroupMap;
  39. };
  40. #endif // _PROXYSERVERGROUPCOLLECTION_H_195CF33C_8382_4462_A4EF_CCEAFCC4E4D8