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.

58 lines
1.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 1997-1998 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: sdocomponentfactory.h
  6. //
  7. // Project: Everest
  8. //
  9. // Description: Component Factory Class
  10. //
  11. // Log:
  12. //
  13. // When Who What
  14. // ---- --- ----
  15. // 6/08/98 TLP Initial Version
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #ifndef __INC_SDO_COMPONENT_FACTORY_H_
  19. #define __INC_SDO_COMPONENT_FACTORY_H_
  20. #include "sdobasedefs.h"
  21. #include "sdocomponentmgr.h"
  22. ///////////////////////////////////////////////////////////////////
  23. ComponentPtr MakeComponent(
  24. COMPONENTTYPE eComponentType,
  25. LONG lComponentId
  26. );
  27. ///////////////////////////////////////////////////////////////////
  28. // Component Factory - Builds Handles to Components
  29. ///////////////////////////////////////////////////////////////////
  30. class CComponentFactory
  31. {
  32. friend ComponentPtr MakeComponent(
  33. COMPONENTTYPE eComponentType,
  34. LONG lComponentId
  35. );
  36. public:
  37. //////////////////////////////////////////////////////////////////////////
  38. ComponentPtr make(
  39. COMPONENTTYPE eComponentType,
  40. LONG lComponentId
  41. );
  42. private:
  43. CComponentFactory() { }
  44. CComponentFactory(CComponentFactory& x);
  45. CComponentFactory& operator = (CComponentFactory& x);
  46. };
  47. #endif // __INC_SDO_COMPONENT_FACTORY_H_