1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
// 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.
namespace WixToolset.Util
{
using WixToolset.Data;
using WixToolset.Util.Tuples;
public static partial class UtilTupleDefinitions
{
public static readonly IntermediateTupleDefinition XmlFile = new IntermediateTupleDefinition(
UtilTupleDefinitionType.XmlFile.ToString(),
new[]
{
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.XmlFile), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.File), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.ElementPath), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Name), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Value), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Flags), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Component_), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Sequence), IntermediateFieldType.Number),
},
typeof(XmlFileTuple));
}
}
namespace WixToolset.Util.Tuples
{
using WixToolset.Data;
public enum XmlFileTupleFields
{
XmlFile,
File,
ElementPath,
Name,
Value,
Flags,
Component_,
Sequence,
}
public class XmlFileTuple : IntermediateTuple
{
public XmlFileTuple() : base(UtilTupleDefinitions.XmlFile, null, null)
{
}
public XmlFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.XmlFile, sourceLineNumber, id)
{
}
public IntermediateField this[XmlFileTupleFields index] => this.Fields[(int)index];
public string XmlFile
{
get => this.Fields[(int)XmlFileTupleFields.XmlFile].AsString();
set => this.Set((int)XmlFileTupleFields.XmlFile, value);
}
public string File
{
get => this.Fields[(int)XmlFileTupleFields.File].AsString();
set => this.Set((int)XmlFileTupleFields.File, value);
}
public string ElementPath
{
get => this.Fields[(int)XmlFileTupleFields.ElementPath].AsString();
set => this.Set((int)XmlFileTupleFields.ElementPath, value);
}
public string Name
{
get => this.Fields[(int)XmlFileTupleFields.Name].AsString();
set => this.Set((int)XmlFileTupleFields.Name, value);
}
public string Value
{
get => this.Fields[(int)XmlFileTupleFields.Value].AsString();
set => this.Set((int)XmlFileTupleFields.Value, value);
}
public int Flags
{
get => this.Fields[(int)XmlFileTupleFields.Flags].AsNumber();
set => this.Set((int)XmlFileTupleFields.Flags, value);
}
public string Component_
{
get => this.Fields[(int)XmlFileTupleFields.Component_].AsString();
set => this.Set((int)XmlFileTupleFields.Component_, value);
}
public int Sequence
{
get => this.Fields[(int)XmlFileTupleFields.Sequence].AsNumber();
set => this.Set((int)XmlFileTupleFields.Sequence, value);
}
}
}
|