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