Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Source/CPack/WiX/cmWIXPatch.h
5017 views
1
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
file LICENSE.rst or https://cmake.org/licensing for details. */
3
#pragma once
4
5
#include <string>
6
7
#include "cmWIXPatchParser.h"
8
#include "cmWIXSourceWriter.h"
9
10
/** \class cmWIXPatch
11
* \brief Class that maintains and applies patch fragments
12
*/
13
class cmWIXPatch
14
{
15
public:
16
cmWIXPatch(cmCPackLog* logger);
17
18
bool LoadFragments(std::string const& patchFilePath);
19
20
void ApplyFragment(std::string const& id, cmWIXSourceWriter& writer);
21
22
bool CheckForUnappliedFragments();
23
24
private:
25
void ApplyElementChildren(cmWIXPatchElement const& element,
26
cmWIXSourceWriter& writer);
27
28
void ApplyElement(cmWIXPatchElement const& element,
29
cmWIXSourceWriter& writer);
30
31
cmCPackLog* Logger;
32
33
cmWIXPatchParser::fragment_map_t Fragments;
34
};
35
36