diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/ExternalFilesTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/ExternalFilesTuple.cs | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/ExternalFilesTuple.cs b/src/WixToolset.Data/Tuples/ExternalFilesTuple.cs new file mode 100644 index 00000000..06e6d4ae --- /dev/null +++ b/src/WixToolset.Data/Tuples/ExternalFilesTuple.cs | |||
@@ -0,0 +1,100 @@ | |||
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 ExternalFiles = new IntermediateTupleDefinition( | ||
10 | TupleDefinitionType.ExternalFiles, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.Family), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.FTK), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.FilePath), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.SymbolPaths), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.IgnoreOffsets), IntermediateFieldType.String), | ||
18 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.IgnoreLengths), IntermediateFieldType.String), | ||
19 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.RetainOffsets), IntermediateFieldType.String), | ||
20 | new IntermediateFieldDefinition(nameof(ExternalFilesTupleFields.Order), IntermediateFieldType.Number), | ||
21 | }, | ||
22 | typeof(ExternalFilesTuple)); | ||
23 | } | ||
24 | } | ||
25 | |||
26 | namespace WixToolset.Data.Tuples | ||
27 | { | ||
28 | public enum ExternalFilesTupleFields | ||
29 | { | ||
30 | Family, | ||
31 | FTK, | ||
32 | FilePath, | ||
33 | SymbolPaths, | ||
34 | IgnoreOffsets, | ||
35 | IgnoreLengths, | ||
36 | RetainOffsets, | ||
37 | Order, | ||
38 | } | ||
39 | |||
40 | public class ExternalFilesTuple : IntermediateTuple | ||
41 | { | ||
42 | public ExternalFilesTuple() : base(TupleDefinitions.ExternalFiles, null, null) | ||
43 | { | ||
44 | } | ||
45 | |||
46 | public ExternalFilesTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ExternalFiles, sourceLineNumber, id) | ||
47 | { | ||
48 | } | ||
49 | |||
50 | public IntermediateField this[ExternalFilesTupleFields index] => this.Fields[(int)index]; | ||
51 | |||
52 | public string Family | ||
53 | { | ||
54 | get => (string)this.Fields[(int)ExternalFilesTupleFields.Family]?.Value; | ||
55 | set => this.Set((int)ExternalFilesTupleFields.Family, value); | ||
56 | } | ||
57 | |||
58 | public string FTK | ||
59 | { | ||
60 | get => (string)this.Fields[(int)ExternalFilesTupleFields.FTK]?.Value; | ||
61 | set => this.Set((int)ExternalFilesTupleFields.FTK, value); | ||
62 | } | ||
63 | |||
64 | public string FilePath | ||
65 | { | ||
66 | get => (string)this.Fields[(int)ExternalFilesTupleFields.FilePath]?.Value; | ||
67 | set => this.Set((int)ExternalFilesTupleFields.FilePath, value); | ||
68 | } | ||
69 | |||
70 | public string SymbolPaths | ||
71 | { | ||
72 | get => (string)this.Fields[(int)ExternalFilesTupleFields.SymbolPaths]?.Value; | ||
73 | set => this.Set((int)ExternalFilesTupleFields.SymbolPaths, value); | ||
74 | } | ||
75 | |||
76 | public string IgnoreOffsets | ||
77 | { | ||
78 | get => (string)this.Fields[(int)ExternalFilesTupleFields.IgnoreOffsets]?.Value; | ||
79 | set => this.Set((int)ExternalFilesTupleFields.IgnoreOffsets, value); | ||
80 | } | ||
81 | |||
82 | public string IgnoreLengths | ||
83 | { | ||
84 | get => (string)this.Fields[(int)ExternalFilesTupleFields.IgnoreLengths]?.Value; | ||
85 | set => this.Set((int)ExternalFilesTupleFields.IgnoreLengths, value); | ||
86 | } | ||
87 | |||
88 | public string RetainOffsets | ||
89 | { | ||
90 | get => (string)this.Fields[(int)ExternalFilesTupleFields.RetainOffsets]?.Value; | ||
91 | set => this.Set((int)ExternalFilesTupleFields.RetainOffsets, value); | ||
92 | } | ||
93 | |||
94 | public int Order | ||
95 | { | ||
96 | get => (int)this.Fields[(int)ExternalFilesTupleFields.Order]?.Value; | ||
97 | set => this.Set((int)ExternalFilesTupleFields.Order, value); | ||
98 | } | ||
99 | } | ||
100 | } \ No newline at end of file | ||