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