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
117
118
119
120
121
122
123
124
|
// 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 ServiceControl = new IntermediateTupleDefinition(
TupleDefinitionType.ServiceControl,
new[]
{
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.ServiceControl), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Name), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallRemove), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallRemove), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallStart), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallStart), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallStop), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallStop), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Arguments), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Wait), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Component_), IntermediateFieldType.String),
},
typeof(ServiceControlTuple));
}
}
namespace WixToolset.Data.Tuples
{
public enum ServiceControlTupleFields
{
ServiceControl,
Name,
InstallRemove,
UninstallRemove,
InstallStart,
UninstallStart,
InstallStop,
UninstallStop,
Arguments,
Wait,
Component_,
}
public class ServiceControlTuple : IntermediateTuple
{
public ServiceControlTuple() : base(TupleDefinitions.ServiceControl, null, null)
{
}
public ServiceControlTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ServiceControl, sourceLineNumber, id)
{
}
public IntermediateField this[ServiceControlTupleFields index] => this.Fields[(int)index];
public string ServiceControl
{
get => (string)this.Fields[(int)ServiceControlTupleFields.ServiceControl];
set => this.Set((int)ServiceControlTupleFields.ServiceControl, value);
}
public string Name
{
get => (string)this.Fields[(int)ServiceControlTupleFields.Name];
set => this.Set((int)ServiceControlTupleFields.Name, value);
}
public bool InstallRemove
{
get => this.Fields[(int)ServiceControlTupleFields.InstallRemove].AsBool();
set => this.Set((int)ServiceControlTupleFields.InstallRemove, value);
}
public bool UninstallRemove
{
get => this.Fields[(int)ServiceControlTupleFields.UninstallRemove].AsBool();
set => this.Set((int)ServiceControlTupleFields.UninstallRemove, value);
}
public bool InstallStart
{
get => this.Fields[(int)ServiceControlTupleFields.InstallStart].AsBool();
set => this.Set((int)ServiceControlTupleFields.InstallStart, value);
}
public bool UninstallStart
{
get => this.Fields[(int)ServiceControlTupleFields.UninstallStart].AsBool();
set => this.Set((int)ServiceControlTupleFields.UninstallStart, value);
}
public bool InstallStop
{
get => this.Fields[(int)ServiceControlTupleFields.InstallStop].AsBool();
set => this.Set((int)ServiceControlTupleFields.InstallStop, value);
}
public bool UninstallStop
{
get => this.Fields[(int)ServiceControlTupleFields.UninstallStop].AsBool();
set => this.Set((int)ServiceControlTupleFields.UninstallStop, value);
}
public string Arguments
{
get => (string)this.Fields[(int)ServiceControlTupleFields.Arguments];
set => this.Set((int)ServiceControlTupleFields.Arguments, value);
}
public bool? Wait
{
get => this.Fields[(int)ServiceControlTupleFields.Wait].AsNullableBool();
set => this.Set((int)ServiceControlTupleFields.Wait, value);
}
public string Component_
{
get => (string)this.Fields[(int)ServiceControlTupleFields.Component_];
set => this.Set((int)ServiceControlTupleFields.Component_, value);
}
}
}
|