diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-11 16:02:25 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-12 12:41:13 +1000 |
| commit | f49060303504d112b1580c1c90430aab4aaf1763 (patch) | |
| tree | 0aab79732de62c3dd1b34a5983ea7b60192eb627 /src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs | |
| parent | be42b2dd8104eec6384ab632d9869e09d29fe827 (diff) | |
| download | wix-f49060303504d112b1580c1c90430aab4aaf1763.tar.gz wix-f49060303504d112b1580c1c90430aab4aaf1763.tar.bz2 wix-f49060303504d112b1580c1c90430aab4aaf1763.zip | |
Move table definitions from Core to Data.
Sync tuple and table definitions.
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs b/src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs new file mode 100644 index 00000000..4f90bb7c --- /dev/null +++ b/src/WixToolset.Data/Tuples/WixDeltaPatchFileTuple.cs | |||
| @@ -0,0 +1,84 @@ | |||
| 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.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition WixDeltaPatchFile = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.WixDeltaPatchFile, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.FileRef), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.RetainLengths), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.IgnoreOffsets), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.IgnoreLengths), IntermediateFieldType.String), | ||
| 17 | new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.RetainOffsets), IntermediateFieldType.String), | ||
| 18 | new IntermediateFieldDefinition(nameof(WixDeltaPatchFileTupleFields.SymbolPaths), IntermediateFieldType.String), | ||
| 19 | }, | ||
| 20 | typeof(WixDeltaPatchFileTuple)); | ||
| 21 | } | ||
| 22 | } | ||
| 23 | |||
| 24 | namespace WixToolset.Data.Tuples | ||
| 25 | { | ||
| 26 | public enum WixDeltaPatchFileTupleFields | ||
| 27 | { | ||
| 28 | FileRef, | ||
| 29 | RetainLengths, | ||
| 30 | IgnoreOffsets, | ||
| 31 | IgnoreLengths, | ||
| 32 | RetainOffsets, | ||
| 33 | SymbolPaths, | ||
| 34 | } | ||
| 35 | |||
| 36 | public class WixDeltaPatchFileTuple : IntermediateTuple | ||
| 37 | { | ||
| 38 | public WixDeltaPatchFileTuple() : base(TupleDefinitions.WixDeltaPatchFile, null, null) | ||
| 39 | { | ||
| 40 | } | ||
| 41 | |||
| 42 | public WixDeltaPatchFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixDeltaPatchFile, sourceLineNumber, id) | ||
| 43 | { | ||
| 44 | } | ||
| 45 | |||
| 46 | public IntermediateField this[WixDeltaPatchFileTupleFields index] => this.Fields[(int)index]; | ||
| 47 | |||
| 48 | public string FileRef | ||
| 49 | { | ||
| 50 | get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.FileRef]; | ||
| 51 | set => this.Set((int)WixDeltaPatchFileTupleFields.FileRef, value); | ||
| 52 | } | ||
| 53 | |||
| 54 | public string RetainLengths | ||
| 55 | { | ||
| 56 | get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.RetainLengths]; | ||
| 57 | set => this.Set((int)WixDeltaPatchFileTupleFields.RetainLengths, value); | ||
| 58 | } | ||
| 59 | |||
| 60 | public string IgnoreOffsets | ||
| 61 | { | ||
| 62 | get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.IgnoreOffsets]; | ||
| 63 | set => this.Set((int)WixDeltaPatchFileTupleFields.IgnoreOffsets, value); | ||
| 64 | } | ||
| 65 | |||
| 66 | public string IgnoreLengths | ||
| 67 | { | ||
| 68 | get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.IgnoreLengths]; | ||
| 69 | set => this.Set((int)WixDeltaPatchFileTupleFields.IgnoreLengths, value); | ||
| 70 | } | ||
| 71 | |||
| 72 | public string RetainOffsets | ||
| 73 | { | ||
| 74 | get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.RetainOffsets]; | ||
| 75 | set => this.Set((int)WixDeltaPatchFileTupleFields.RetainOffsets, value); | ||
| 76 | } | ||
| 77 | |||
| 78 | public string SymbolPaths | ||
| 79 | { | ||
| 80 | get => (string)this.Fields[(int)WixDeltaPatchFileTupleFields.SymbolPaths]; | ||
| 81 | set => this.Set((int)WixDeltaPatchFileTupleFields.SymbolPaths, value); | ||
| 82 | } | ||
| 83 | } | ||
| 84 | } \ No newline at end of file | ||
