diff options
Diffstat (limited to 'src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs')
-rw-r--r-- | src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs b/src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs new file mode 100644 index 00000000..d7295424 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixPatchBaselineSymbol.cs | |||
@@ -0,0 +1,76 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Data | ||
4 | { | ||
5 | using WixToolset.Data.Symbols; | ||
6 | |||
7 | public static partial class SymbolDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateSymbolDefinition WixPatchBaseline = new IntermediateSymbolDefinition( | ||
10 | SymbolDefinitionType.WixPatchBaseline, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.DiskId), IntermediateFieldType.Number), | ||
14 | new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.ValidationFlags), IntermediateFieldType.Number), | ||
15 | new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.BaselineFile), IntermediateFieldType.Path), | ||
16 | new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.UpdateFile), IntermediateFieldType.Path), | ||
17 | new IntermediateFieldDefinition(nameof(WixPatchBaselineSymbolFields.TransformFile), IntermediateFieldType.Path), | ||
18 | }, | ||
19 | typeof(WixPatchBaselineSymbol)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Data.Symbols | ||
24 | { | ||
25 | public enum WixPatchBaselineSymbolFields | ||
26 | { | ||
27 | DiskId, | ||
28 | ValidationFlags, | ||
29 | BaselineFile, | ||
30 | UpdateFile, | ||
31 | TransformFile, | ||
32 | } | ||
33 | |||
34 | public class WixPatchBaselineSymbol : IntermediateSymbol | ||
35 | { | ||
36 | public WixPatchBaselineSymbol() : base(SymbolDefinitions.WixPatchBaseline, null, null) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | public WixPatchBaselineSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchBaseline, sourceLineNumber, id) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | public IntermediateField this[WixPatchBaselineSymbolFields index] => this.Fields[(int)index]; | ||
45 | |||
46 | public int DiskId | ||
47 | { | ||
48 | get => (int)this.Fields[(int)WixPatchBaselineSymbolFields.DiskId]; | ||
49 | set => this.Set((int)WixPatchBaselineSymbolFields.DiskId, value); | ||
50 | } | ||
51 | |||
52 | public TransformFlags ValidationFlags | ||
53 | { | ||
54 | get => (TransformFlags)this.Fields[(int)WixPatchBaselineSymbolFields.ValidationFlags].AsNumber(); | ||
55 | set => this.Set((int)WixPatchBaselineSymbolFields.ValidationFlags, (int)value); | ||
56 | } | ||
57 | |||
58 | public IntermediateFieldPathValue BaselineFile | ||
59 | { | ||
60 | get => this.Fields[(int)WixPatchBaselineSymbolFields.BaselineFile].AsPath(); | ||
61 | set => this.Set((int)WixPatchBaselineSymbolFields.BaselineFile, value); | ||
62 | } | ||
63 | |||
64 | public IntermediateFieldPathValue UpdateFile | ||
65 | { | ||
66 | get => this.Fields[(int)WixPatchBaselineSymbolFields.UpdateFile].AsPath(); | ||
67 | set => this.Set((int)WixPatchBaselineSymbolFields.UpdateFile, value); | ||
68 | } | ||
69 | |||
70 | public IntermediateFieldPathValue TransformFile | ||
71 | { | ||
72 | get => this.Fields[(int)WixPatchBaselineSymbolFields.TransformFile].AsPath(); | ||
73 | set => this.Set((int)WixPatchBaselineSymbolFields.TransformFile, value); | ||
74 | } | ||
75 | } | ||
76 | } | ||