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.

62 lines
1.7 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2001, Microsoft Corporation All rights reserved.
  4. //
  5. // Module Name:
  6. //
  7. // filelayout.h
  8. //
  9. // Abstract:
  10. //
  11. // This file contains the File layout object definition.
  12. //
  13. // Revision History:
  14. //
  15. // 2001-06-20 lguindon Created.
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #ifndef _FILELAYOUT_H_
  19. #define _FILELAYOUT_H_
  20. ///////////////////////////////////////////////////////////////////////////////
  21. //
  22. // Includes Files.
  23. //
  24. ///////////////////////////////////////////////////////////////////////////////
  25. #include "infparser.h"
  26. ///////////////////////////////////////////////////////////////////////////////
  27. //
  28. // Class definition.
  29. //
  30. ///////////////////////////////////////////////////////////////////////////////
  31. class FileLayout
  32. {
  33. public:
  34. FileLayout(LPSTR originFilename, LPSTR destFilename, DWORD flavorMask)
  35. {
  36. sprintf(m_OriginFilename,"%s",originFilename);
  37. sprintf(m_DestFilename,"%s",destFilename);
  38. m_Flavor = flavorMask;
  39. m_Next = NULL;
  40. m_Previous = NULL;
  41. };
  42. BOOL isFlavor(DWORD dwFlavor){ return (dwFlavor & m_Flavor); };
  43. LPSTR getOriginFileName() { return (m_OriginFilename); };
  44. LPSTR getDestFileName() { return (m_DestFilename); };
  45. FileLayout* getNext() { return (m_Next); };
  46. FileLayout* getPrevious() { return (m_Previous); };
  47. void setNext(FileLayout *next) { m_Next = next; };
  48. void setPrevious(FileLayout *previous) { m_Previous = previous; };
  49. private:
  50. CHAR m_OriginFilename[MAX_PATH];
  51. CHAR m_DestFilename[MAX_PATH];
  52. DWORD m_Flavor;
  53. FileLayout *m_Next;
  54. FileLayout *m_Previous;
  55. };
  56. #endif //_FILELAYOUT_H_