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