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