diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs b/src/WixToolset.Data/Tuples/WixRegistrySearchTuple.cs new file mode 100644 index 00000000..c23bf957 --- /dev/null +++ b/src/WixToolset.Data/Tuples/WixRegistrySearchTuple.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.Tuples; | ||
6 | |||
7 | public static partial class TupleDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateTupleDefinition WixRegistrySearch = new IntermediateTupleDefinition( | ||
10 | TupleDefinitionType.WixRegistrySearch, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(WixRegistrySearchTupleFields.WixSearch_), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(WixRegistrySearchTupleFields.Root), IntermediateFieldType.Number), | ||
15 | new IntermediateFieldDefinition(nameof(WixRegistrySearchTupleFields.Key), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixRegistrySearchTupleFields.Value), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(WixRegistrySearchTupleFields.Attributes), IntermediateFieldType.Number), | ||
18 | }, | ||
19 | typeof(WixRegistrySearchTuple)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Data.Tuples | ||
24 | { | ||
25 | public enum WixRegistrySearchTupleFields | ||
26 | { | ||
27 | WixSearch_, | ||
28 | Root, | ||
29 | Key, | ||
30 | Value, | ||
31 | Attributes, | ||
32 | } | ||
33 | |||
34 | public class WixRegistrySearchTuple : IntermediateTuple | ||
35 | { | ||
36 | public WixRegistrySearchTuple() : base(TupleDefinitions.WixRegistrySearch, null, null) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | public WixRegistrySearchTuple(SourceLineNumber sourceLineNumber , Identifier id = null) : base(TupleDefinitions.WixRegistrySearch, sourceLineNumber, id) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | public IntermediateField this[WixRegistrySearchTupleFields index] => this.Fields[(int)index]; | ||
45 | |||
46 | public string WixSearch_ | ||
47 | { | ||
48 | get => (string)this.Fields[(int)WixRegistrySearchTupleFields.WixSearch_]?.Value; | ||
49 | set => this.Set((int)WixRegistrySearchTupleFields.WixSearch_, value); | ||
50 | } | ||
51 | |||
52 | public int Root | ||
53 | { | ||
54 | get => (int)this.Fields[(int)WixRegistrySearchTupleFields.Root]?.Value; | ||
55 | set => this.Set((int)WixRegistrySearchTupleFields.Root, value); | ||
56 | } | ||
57 | |||
58 | public string Key | ||
59 | { | ||
60 | get => (string)this.Fields[(int)WixRegistrySearchTupleFields.Key]?.Value; | ||
61 | set => this.Set((int)WixRegistrySearchTupleFields.Key, value); | ||
62 | } | ||
63 | |||
64 | public string Value | ||
65 | { | ||
66 | get => (string)this.Fields[(int)WixRegistrySearchTupleFields.Value]?.Value; | ||
67 | set => this.Set((int)WixRegistrySearchTupleFields.Value, value); | ||
68 | } | ||
69 | |||
70 | public int Attributes | ||
71 | { | ||
72 | get => (int)this.Fields[(int)WixRegistrySearchTupleFields.Attributes]?.Value; | ||
73 | set => this.Set((int)WixRegistrySearchTupleFields.Attributes, value); | ||
74 | } | ||
75 | } | ||
76 | } \ No newline at end of file | ||