aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Symbols/WixDncOptionsSymbol.cs
blob: b9a41c21e619e55074be1a74a8c01359daf32c71 (plain)
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
// 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.Bal
{
    using WixToolset.Data;
    using WixToolset.Bal.Symbols;

    public static partial class BalSymbolDefinitions
    {
        public static readonly IntermediateSymbolDefinition WixDncOptions = new IntermediateSymbolDefinition(
            BalSymbolDefinitionType.WixDncOptions.ToString(),
            new[]
            {
                new IntermediateFieldDefinition(nameof(WixDncOptionsSymbolFields.SelfContainedDeployment), IntermediateFieldType.Number),
            },
            typeof(WixDncOptionsSymbol));
    }
}

namespace WixToolset.Bal.Symbols
{
    using WixToolset.Data;

    public enum WixDncOptionsSymbolFields
    {
        SelfContainedDeployment,
    }

    public class WixDncOptionsSymbol : IntermediateSymbol
    {
        public WixDncOptionsSymbol() : base(BalSymbolDefinitions.WixDncOptions, null, null)
        {
        }

        public WixDncOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixDncOptions, sourceLineNumber, id)
        {
        }

        public IntermediateField this[WixDncOptionsSymbolFields index] => this.Fields[(int)index];

        public int SelfContainedDeployment
        {
            get => this.Fields[(int)WixDncOptionsSymbolFields.SelfContainedDeployment].AsNumber();
            set => this.Set((int)WixDncOptionsSymbolFields.SelfContainedDeployment, value);
        }
    }
}