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.

65 lines
1.8 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2001, Microsoft Corporation All rights reserved.
  4. //
  5. // Module Name:
  6. //
  7. // Component.h
  8. //
  9. // Abstract:
  10. //
  11. // This file contains the Component object definition.
  12. //
  13. // Revision History:
  14. //
  15. // 2001-06-20 lguindon Created.
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #ifndef _COMPONENT_H_
  19. #define _COMPONENT_H_
  20. ///////////////////////////////////////////////////////////////////////////////
  21. //
  22. // Includes Files.
  23. //
  24. ///////////////////////////////////////////////////////////////////////////////
  25. #include "infparser.h"
  26. ///////////////////////////////////////////////////////////////////////////////
  27. //
  28. // Class definition.
  29. //
  30. ///////////////////////////////////////////////////////////////////////////////
  31. class Component
  32. {
  33. public:
  34. Component(LPSTR name, LPSTR folderName, LPSTR infName, LPSTR sectionName)
  35. {
  36. sprintf(m_Name,"%s",name);
  37. sprintf(m_FolderName,"%s",folderName);
  38. sprintf(m_InfName,"%s",infName);
  39. sprintf(m_InfInstallSectionName,"%s",sectionName);
  40. m_Next = NULL;
  41. m_Previous = NULL;
  42. };
  43. LPSTR getName() { return (m_Name);};
  44. LPSTR getFolderName() { return (m_FolderName); };
  45. LPSTR getInfName() { return (m_InfName); };
  46. LPSTR getInfInstallSectionName() { return (m_InfInstallSectionName); };
  47. Component* getNext() { return (m_Next); };
  48. Component* getPrevious() { return (m_Previous); };
  49. void setNext(Component *next) { m_Next = next; };
  50. void setPrevious(Component *previous) { m_Previous = previous; };
  51. private:
  52. CHAR m_Name[MAX_PATH];
  53. CHAR m_FolderName[MAX_PATH];
  54. CHAR m_InfName[MAX_PATH];
  55. CHAR m_InfInstallSectionName[MAX_PATH];
  56. Component *m_Next;
  57. Component *m_Previous;
  58. };
  59. #endif //_COMPONENT_H_