aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/WixDncOptionsTuple.cs
blob: 8a36879b80962129dd02b358b7b904e23b41a4f7 (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.Tuples;

    public static partial class BalTupleDefinitions
    {
        public static readonly IntermediateTupleDefinition WixDncOptions = new IntermediateTupleDefinition(
            BalTupleDefinitionType.WixDncOptions.ToString(),
            new[]
            {
                new IntermediateFieldDefinition(nameof(WixDncOptionsTupleFields.SelfContainedDeployment), IntermediateFieldType.Number),
            },
            typeof(WixDncOptionsTuple));
    }
}

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

    public enum WixDncOptionsTupleFields
    {
        SelfContainedDeployment,
    }

    public class WixDncOptionsTuple : IntermediateTuple
    {
        public WixDncOptionsTuple() : base(BalTupleDefinitions.WixDncOptions, null, null)
        {
        }

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

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

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