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