aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-11-01 10:56:09 -0700
committerRob Mensching <rob@firegiant.com>2017-11-01 10:56:09 -0700
commit69b15d96cebdbb7201b1849b4f62786633d70b8d (patch)
tree4b65de8679e4b4ab81b69edcccbac1ae9f55a16d /src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs
parenta8656a87887d6cb2c54f4bbeacee37f7074f1032 (diff)
downloadwix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.gz
wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.bz2
wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.zip
Introduce WiX Intermediate Representation
Diffstat (limited to 'src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs b/src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs
new file mode 100644
index 00000000..7409577f
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/FileSFPCatalogTuple.cs
@@ -0,0 +1,52 @@
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 FileSFPCatalog = new IntermediateTupleDefinition(
10 TupleDefinitionType.FileSFPCatalog,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(FileSFPCatalogTupleFields.File_), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(FileSFPCatalogTupleFields.SFPCatalog_), IntermediateFieldType.String),
15 },
16 typeof(FileSFPCatalogTuple));
17 }
18}
19
20namespace WixToolset.Data.Tuples
21{
22 public enum FileSFPCatalogTupleFields
23 {
24 File_,
25 SFPCatalog_,
26 }
27
28 public class FileSFPCatalogTuple : IntermediateTuple
29 {
30 public FileSFPCatalogTuple() : base(TupleDefinitions.FileSFPCatalog, null, null)
31 {
32 }
33
34 public FileSFPCatalogTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.FileSFPCatalog, sourceLineNumber, id)
35 {
36 }
37
38 public IntermediateField this[FileSFPCatalogTupleFields index] => this.Fields[(int)index];
39
40 public string File_
41 {
42 get => (string)this.Fields[(int)FileSFPCatalogTupleFields.File_]?.Value;
43 set => this.Set((int)FileSFPCatalogTupleFields.File_, value);
44 }
45
46 public string SFPCatalog_
47 {
48 get => (string)this.Fields[(int)FileSFPCatalogTupleFields.SFPCatalog_]?.Value;
49 set => this.Set((int)FileSFPCatalogTupleFields.SFPCatalog_, value);
50 }
51 }
52} \ No newline at end of file