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