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