aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/PerfmonManifestTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/PerfmonManifestTuple.cs')
-rw-r--r--src/wixext/Tuples/PerfmonManifestTuple.cs63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/wixext/Tuples/PerfmonManifestTuple.cs b/src/wixext/Tuples/PerfmonManifestTuple.cs
new file mode 100644
index 00000000..3f6cb8cc
--- /dev/null
+++ b/src/wixext/Tuples/PerfmonManifestTuple.cs
@@ -0,0 +1,63 @@
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 PerfmonManifest = new IntermediateTupleDefinition(
11 UtilTupleDefinitionType.PerfmonManifest.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(PerfmonManifestTupleFields.Component_), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(PerfmonManifestTupleFields.File), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(PerfmonManifestTupleFields.ResourceFileDirectory), IntermediateFieldType.String),
17 },
18 typeof(PerfmonManifestTuple));
19 }
20}
21
22namespace WixToolset.Util.Tuples
23{
24 using WixToolset.Data;
25
26 public enum PerfmonManifestTupleFields
27 {
28 Component_,
29 File,
30 ResourceFileDirectory,
31 }
32
33 public class PerfmonManifestTuple : IntermediateTuple
34 {
35 public PerfmonManifestTuple() : base(UtilTupleDefinitions.PerfmonManifest, null, null)
36 {
37 }
38
39 public PerfmonManifestTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.PerfmonManifest, sourceLineNumber, id)
40 {
41 }
42
43 public IntermediateField this[PerfmonManifestTupleFields index] => this.Fields[(int)index];
44
45 public string Component_
46 {
47 get => this.Fields[(int)PerfmonManifestTupleFields.Component_].AsString();
48 set => this.Set((int)PerfmonManifestTupleFields.Component_, value);
49 }
50
51 public string File
52 {
53 get => this.Fields[(int)PerfmonManifestTupleFields.File].AsString();
54 set => this.Set((int)PerfmonManifestTupleFields.File, value);
55 }
56
57 public string ResourceFileDirectory
58 {
59 get => this.Fields[(int)PerfmonManifestTupleFields.ResourceFileDirectory].AsString();
60 set => this.Set((int)PerfmonManifestTupleFields.ResourceFileDirectory, value);
61 }
62 }
63} \ No newline at end of file