main
cs 93 lines 4.16 KB
Raw
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.Data
4 {
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition WixBundleHarvestedDependencyProvider = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.WixBundleHarvestedDependencyProvider,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixBundleHarvestedDependencyProviderSymbolFields.PackagePayloadRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixBundleHarvestedDependencyProviderSymbolFields.Attributes), IntermediateFieldType.Number),
15 new IntermediateFieldDefinition(nameof(WixBundleHarvestedDependencyProviderSymbolFields.ProviderKey), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(WixBundleHarvestedDependencyProviderSymbolFields.Version), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(WixBundleHarvestedDependencyProviderSymbolFields.DisplayName), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(WixBundleHarvestedDependencyProviderSymbolFields.ProviderAttributes), IntermediateFieldType.Number),
19 },
20 typeof(WixBundleHarvestedDependencyProviderSymbol));
21 }
22 }
23
24 namespace WixToolset.Data.Symbols
25 {
26 using System;
27 using WixToolset.Data;
28
29 public enum WixBundleHarvestedDependencyProviderSymbolFields
30 {
31 PackagePayloadRef,
32 Attributes,
33 ProviderKey,
34 Version,
35 DisplayName,
36 ProviderAttributes,
37 }
38
39 [Flags]
40 public enum WixBundleHarvestedDependencyProviderAttributes
41 {
42 None = 0x0,
43 }
44
45 public class WixBundleHarvestedDependencyProviderSymbol : IntermediateSymbol
46 {
47 public WixBundleHarvestedDependencyProviderSymbol() : base(SymbolDefinitions.WixBundleHarvestedDependencyProvider, null, null)
48 {
49 }
50
51 public WixBundleHarvestedDependencyProviderSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleHarvestedDependencyProvider, sourceLineNumber, id)
52 {
53 }
54
55 public IntermediateField this[WixBundleHarvestedDependencyProviderSymbolFields index] => this.Fields[(int)index];
56
57 public string PackagePayloadRef
58 {
59 get => this.Fields[(int)WixBundleHarvestedDependencyProviderSymbolFields.PackagePayloadRef].AsString();
60 set => this.Set((int)WixBundleHarvestedDependencyProviderSymbolFields.PackagePayloadRef, value);
61 }
62
63 public WixBundleHarvestedDependencyProviderAttributes Attributes
64 {
65 get => (WixBundleHarvestedDependencyProviderAttributes)this.Fields[(int)WixBundleHarvestedDependencyProviderSymbolFields.Attributes].AsNumber();
66 set => this.Set((int)WixBundleHarvestedDependencyProviderSymbolFields.Attributes, (int)value);
67 }
68
69 public string ProviderKey
70 {
71 get => this.Fields[(int)WixBundleHarvestedDependencyProviderSymbolFields.ProviderKey].AsString();
72 set => this.Set((int)WixBundleHarvestedDependencyProviderSymbolFields.ProviderKey, value);
73 }
74
75 public string Version
76 {
77 get => this.Fields[(int)WixBundleHarvestedDependencyProviderSymbolFields.Version].AsString();
78 set => this.Set((int)WixBundleHarvestedDependencyProviderSymbolFields.Version, value);
79 }
80
81 public string DisplayName
82 {
83 get => this.Fields[(int)WixBundleHarvestedDependencyProviderSymbolFields.DisplayName].AsString();
84 set => this.Set((int)WixBundleHarvestedDependencyProviderSymbolFields.DisplayName, value);
85 }
86
87 public int ProviderAttributes
88 {
89 get => this.Fields[(int)WixBundleHarvestedDependencyProviderSymbolFields.ProviderAttributes].AsNumber();
90 set => this.Set((int)WixBundleHarvestedDependencyProviderSymbolFields.ProviderAttributes, value);
91 }
92 }
93 }