From 4b3a3e60eb5f621723be7b894a7a71ae331dcf46 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 19 Jun 2020 13:45:04 +1000 Subject: Add BundleCustomData tuples. Remove Unreal from CustomTable. --- .../Tuples/WixBundleCustomDataAttributeTuple.cs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs (limited to 'src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs') diff --git a/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs new file mode 100644 index 00000000..9c27c9f4 --- /dev/null +++ b/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs @@ -0,0 +1,52 @@ +// 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.Data +{ + using WixToolset.Data.Tuples; + + public static partial class TupleDefinitions + { + public static readonly IntermediateTupleDefinition WixBundleCustomDataAttribute = new IntermediateTupleDefinition( + TupleDefinitionType.WixBundleCustomDataAttribute, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeTupleFields.CustomDataRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeTupleFields.Name), IntermediateFieldType.String), + }, + typeof(WixBundleCustomDataAttributeTuple)); + } +} + +namespace WixToolset.Data.Tuples +{ + public enum WixBundleCustomDataAttributeTupleFields + { + CustomDataRef, + Name, + } + + public class WixBundleCustomDataAttributeTuple : IntermediateTuple + { + public WixBundleCustomDataAttributeTuple() : base(TupleDefinitions.WixBundleCustomDataAttribute, null, null) + { + } + + public WixBundleCustomDataAttributeTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundleCustomDataAttribute, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleCustomDataAttributeTupleFields index] => this.Fields[(int)index]; + + public string CustomDataRef + { + get => (string)this.Fields[(int)WixBundleCustomDataAttributeTupleFields.CustomDataRef]; + set => this.Set((int)WixBundleCustomDataAttributeTupleFields.CustomDataRef, value); + } + + public string Name + { + get => (string)this.Fields[(int)WixBundleCustomDataAttributeTupleFields.Name]; + set => this.Set((int)WixBundleCustomDataAttributeTupleFields.Name, value); + } + } +} -- cgit v1.2.3-55-g6feb