aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/SFPCatalogTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/SFPCatalogTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/SFPCatalogTuple.cs60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/SFPCatalogTuple.cs b/src/WixToolset.Data/Tuples/SFPCatalogTuple.cs
new file mode 100644
index 00000000..5db5f984
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/SFPCatalogTuple.cs
@@ -0,0 +1,60 @@
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
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Tuples;
6
7 public static partial class TupleDefinitions
8 {
9 public static readonly IntermediateTupleDefinition SFPCatalog = new IntermediateTupleDefinition(
10 TupleDefinitionType.SFPCatalog,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(SFPCatalogTupleFields.SFPCatalog), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(SFPCatalogTupleFields.Catalog), IntermediateFieldType.Path),
15 new IntermediateFieldDefinition(nameof(SFPCatalogTupleFields.Dependency), IntermediateFieldType.String),
16 },
17 typeof(SFPCatalogTuple));
18 }
19}
20
21namespace WixToolset.Data.Tuples
22{
23 public enum SFPCatalogTupleFields
24 {
25 SFPCatalog,
26 Catalog,
27 Dependency,
28 }
29
30 public class SFPCatalogTuple : IntermediateTuple
31 {
32 public SFPCatalogTuple() : base(TupleDefinitions.SFPCatalog, null, null)
33 {
34 }
35
36 public SFPCatalogTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.SFPCatalog, sourceLineNumber, id)
37 {
38 }
39
40 public IntermediateField this[SFPCatalogTupleFields index] => this.Fields[(int)index];
41
42 public string SFPCatalog
43 {
44 get => (string)this.Fields[(int)SFPCatalogTupleFields.SFPCatalog]?.Value;
45 set => this.Set((int)SFPCatalogTupleFields.SFPCatalog, value);
46 }
47
48 public string Catalog
49 {
50 get => (string)this.Fields[(int)SFPCatalogTupleFields.Catalog]?.Value;
51 set => this.Set((int)SFPCatalogTupleFields.Catalog, value);
52 }
53
54 public string Dependency
55 {
56 get => (string)this.Fields[(int)SFPCatalogTupleFields.Dependency]?.Value;
57 set => this.Set((int)SFPCatalogTupleFields.Dependency, value);
58 }
59 }
60} \ No newline at end of file