cmWIXPatch.h 898 B

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