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
104
105
106
107
108
109
110
111
112
113
114
115
116
|
// 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.Data
{
using WixToolset.Data.Tuples;
public static partial class TupleDefinitions
{
public static readonly IntermediateTupleDefinition WixFileSearch = new IntermediateTupleDefinition(
TupleDefinitionType.WixFileSearch,
new[]
{
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.WixSearchRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.Path), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MinVersion), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MaxVersion), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MinSize), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MaxSize), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MinDate), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MaxDate), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.Languages), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.Attributes), IntermediateFieldType.Number),
},
typeof(WixFileSearchTuple));
}
}
namespace WixToolset.Data.Tuples
{
public enum WixFileSearchTupleFields
{
WixSearchRef,
Path,
MinVersion,
MaxVersion,
MinSize,
MaxSize,
MinDate,
MaxDate,
Languages,
Attributes,
}
public class WixFileSearchTuple : IntermediateTuple
{
public WixFileSearchTuple() : base(TupleDefinitions.WixFileSearch, null, null)
{
}
public WixFileSearchTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixFileSearch, sourceLineNumber, id)
{
}
public IntermediateField this[WixFileSearchTupleFields index] => this.Fields[(int)index];
public string WixSearchRef
{
get => (string)this.Fields[(int)WixFileSearchTupleFields.WixSearchRef];
set => this.Set((int)WixFileSearchTupleFields.WixSearchRef, value);
}
public string Path
{
get => (string)this.Fields[(int)WixFileSearchTupleFields.Path];
set => this.Set((int)WixFileSearchTupleFields.Path, value);
}
public string MinVersion
{
get => (string)this.Fields[(int)WixFileSearchTupleFields.MinVersion];
set => this.Set((int)WixFileSearchTupleFields.MinVersion, value);
}
public string MaxVersion
{
get => (string)this.Fields[(int)WixFileSearchTupleFields.MaxVersion];
set => this.Set((int)WixFileSearchTupleFields.MaxVersion, value);
}
public int MinSize
{
get => (int)this.Fields[(int)WixFileSearchTupleFields.MinSize];
set => this.Set((int)WixFileSearchTupleFields.MinSize, value);
}
public int MaxSize
{
get => (int)this.Fields[(int)WixFileSearchTupleFields.MaxSize];
set => this.Set((int)WixFileSearchTupleFields.MaxSize, value);
}
public int MinDate
{
get => (int)this.Fields[(int)WixFileSearchTupleFields.MinDate];
set => this.Set((int)WixFileSearchTupleFields.MinDate, value);
}
public int MaxDate
{
get => (int)this.Fields[(int)WixFileSearchTupleFields.MaxDate];
set => this.Set((int)WixFileSearchTupleFields.MaxDate, value);
}
public string Languages
{
get => (string)this.Fields[(int)WixFileSearchTupleFields.Languages];
set => this.Set((int)WixFileSearchTupleFields.Languages, value);
}
public int Attributes
{
get => (int)this.Fields[(int)WixFileSearchTupleFields.Attributes];
set => this.Set((int)WixFileSearchTupleFields.Attributes, value);
}
}
}
|