cmWIXAccessControlList.h 910 B

12345678910111213141516171819202122232425262728293031323334
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmWIXAccessControlList_h
  4. #define cmWIXAccessControlList_h
  5. #include "cmWIXSourceWriter.h"
  6. #include "cmCPackLog.h"
  7. #include "cmInstalledFile.h"
  8. class cmWIXAccessControlList
  9. {
  10. public:
  11. cmWIXAccessControlList(cmCPackLog* logger,
  12. cmInstalledFile const& installedFile,
  13. cmWIXSourceWriter& sourceWriter);
  14. bool Apply();
  15. private:
  16. void CreatePermissionElement(std::string const& entry);
  17. void ReportError(std::string const& entry, std::string const& message);
  18. bool IsBooleanAttribute(std::string const& name);
  19. void EmitBooleanAttribute(std::string const& entry, std::string const& name);
  20. cmCPackLog* Logger;
  21. cmInstalledFile const& InstalledFile;
  22. cmWIXSourceWriter& SourceWriter;
  23. };
  24. #endif