aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/PerformanceCategoryTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/PerformanceCategoryTuple.cs')
-rw-r--r--src/wixext/Tuples/PerformanceCategoryTuple.cs79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/wixext/Tuples/PerformanceCategoryTuple.cs b/src/wixext/Tuples/PerformanceCategoryTuple.cs
new file mode 100644
index 00000000..ec2ba73d
--- /dev/null
+++ b/src/wixext/Tuples/PerformanceCategoryTuple.cs
@@ -0,0 +1,79 @@
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.Util
4{
5 using WixToolset.Data;
6 using WixToolset.Util.Tuples;
7
8 public static partial class UtilTupleDefinitions
9 {
10 public static readonly IntermediateTupleDefinition PerformanceCategory = new IntermediateTupleDefinition(
11 UtilTupleDefinitionType.PerformanceCategory.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.PerformanceCategory), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.Component_), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.Name), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.IniData), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.ConstantData), IntermediateFieldType.String),
19 },
20 typeof(PerformanceCategoryTuple));
21 }
22}
23
24namespace WixToolset.Util.Tuples
25{
26 using WixToolset.Data;
27
28 public enum PerformanceCategoryTupleFields
29 {
30 PerformanceCategory,
31 Component_,
32 Name,
33 IniData,
34 ConstantData,
35 }
36
37 public class PerformanceCategoryTuple : IntermediateTuple
38 {
39 public PerformanceCategoryTuple() : base(UtilTupleDefinitions.PerformanceCategory, null, null)
40 {
41 }
42
43 public PerformanceCategoryTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.PerformanceCategory, sourceLineNumber, id)
44 {
45 }
46
47 public IntermediateField this[PerformanceCategoryTupleFields index] => this.Fields[(int)index];
48
49 public string PerformanceCategory
50 {
51 get => this.Fields[(int)PerformanceCategoryTupleFields.PerformanceCategory].AsString();
52 set => this.Set((int)PerformanceCategoryTupleFields.PerformanceCategory, value);
53 }
54
55 public string Component_
56 {
57 get => this.Fields[(int)PerformanceCategoryTupleFields.Component_].AsString();
58 set => this.Set((int)PerformanceCategoryTupleFields.Component_, value);
59 }
60
61 public string Name
62 {
63 get => this.Fields[(int)PerformanceCategoryTupleFields.Name].AsString();
64 set => this.Set((int)PerformanceCategoryTupleFields.Name, value);
65 }
66
67 public string IniData
68 {
69 get => this.Fields[(int)PerformanceCategoryTupleFields.IniData].AsString();
70 set => this.Set((int)PerformanceCategoryTupleFields.IniData, value);
71 }
72
73 public string ConstantData
74 {
75 get => this.Fields[(int)PerformanceCategoryTupleFields.ConstantData].AsString();
76 set => this.Set((int)PerformanceCategoryTupleFields.ConstantData, value);
77 }
78 }
79} \ No newline at end of file