cmWIXPatch.h 861 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. #pragma once
  4. #include <string>
  5. #include "cmWIXPatchParser.h"
  6. #include "cmWIXSourceWriter.h"
  7. /** \class cmWIXPatch
  8. * \brief Class that maintains and applies patch fragments
  9. */
  10. class cmWIXPatch
  11. {
  12. public:
  13. cmWIXPatch(cmCPackLog* logger);
  14. bool LoadFragments(std::string const& patchFilePath);
  15. void ApplyFragment(std::string const& id, cmWIXSourceWriter& writer);
  16. bool CheckForUnappliedFragments();
  17. private:
  18. void ApplyElementChildren(const cmWIXPatchElement& element,
  19. cmWIXSourceWriter& writer);
  20. void ApplyElement(const cmWIXPatchElement& element,
  21. cmWIXSourceWriter& writer);
  22. cmCPackLog* Logger;
  23. cmWIXPatchParser::fragment_map_t Fragments;
  24. };