aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-10-07 07:32:59 -0700
committerRob Mensching <rob@firegiant.com>2019-10-07 11:27:21 -0700
commitcece10e037c6daacc8d2def1a9057882aec47fe4 (patch)
tree8e79c0d5b30ed8e663c077b2d9ce2b829b76ab84 /src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs
parent7462108b714d07161126dcedda5312daef54ae13 (diff)
downloadwix-cece10e037c6daacc8d2def1a9057882aec47fe4.tar.gz
wix-cece10e037c6daacc8d2def1a9057882aec47fe4.tar.bz2
wix-cece10e037c6daacc8d2def1a9057882aec47fe4.zip
Add support for long fields and fix up Bundle and many other tuples
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs b/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs
index 47cccf25..de6f47b9 100644
--- a/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs
+++ b/src/WixToolset.Data/Tuples/WixComponentSearchTuple.cs
@@ -10,7 +10,6 @@ namespace WixToolset.Data
10 TupleDefinitionType.WixComponentSearch, 10 TupleDefinitionType.WixComponentSearch,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(WixComponentSearchTupleFields.WixSearchRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixComponentSearchTupleFields.Guid), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(WixComponentSearchTupleFields.Guid), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixComponentSearchTupleFields.ProductCode), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(WixComponentSearchTupleFields.ProductCode), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(WixComponentSearchTupleFields.Attributes), IntermediateFieldType.Number), 15 new IntermediateFieldDefinition(nameof(WixComponentSearchTupleFields.Attributes), IntermediateFieldType.Number),
@@ -21,14 +20,23 @@ namespace WixToolset.Data
21 20
22namespace WixToolset.Data.Tuples 21namespace WixToolset.Data.Tuples
23{ 22{
23 using System;
24
24 public enum WixComponentSearchTupleFields 25 public enum WixComponentSearchTupleFields
25 { 26 {
26 WixSearchRef,
27 Guid, 27 Guid,
28 ProductCode, 28 ProductCode,
29 Attributes, 29 Attributes,
30 } 30 }
31 31
32 [Flags]
33 public enum WixComponentSearchAttributes
34 {
35 KeyPath = 0x1,
36 State = 0x2,
37 WantDirectory = 0x4,
38 }
39
32 public class WixComponentSearchTuple : IntermediateTuple 40 public class WixComponentSearchTuple : IntermediateTuple
33 { 41 {
34 public WixComponentSearchTuple() : base(TupleDefinitions.WixComponentSearch, null, null) 42 public WixComponentSearchTuple() : base(TupleDefinitions.WixComponentSearch, null, null)
@@ -41,12 +49,6 @@ namespace WixToolset.Data.Tuples
41 49
42 public IntermediateField this[WixComponentSearchTupleFields index] => this.Fields[(int)index]; 50 public IntermediateField this[WixComponentSearchTupleFields index] => this.Fields[(int)index];
43 51
44 public string WixSearchRef
45 {
46 get => (string)this.Fields[(int)WixComponentSearchTupleFields.WixSearchRef];
47 set => this.Set((int)WixComponentSearchTupleFields.WixSearchRef, value);
48 }
49
50 public string Guid 52 public string Guid
51 { 53 {
52 get => (string)this.Fields[(int)WixComponentSearchTupleFields.Guid]; 54 get => (string)this.Fields[(int)WixComponentSearchTupleFields.Guid];
@@ -59,10 +61,10 @@ namespace WixToolset.Data.Tuples
59 set => this.Set((int)WixComponentSearchTupleFields.ProductCode, value); 61 set => this.Set((int)WixComponentSearchTupleFields.ProductCode, value);
60 } 62 }
61 63
62 public int Attributes 64 public WixComponentSearchAttributes Attributes
63 { 65 {
64 get => (int)this.Fields[(int)WixComponentSearchTupleFields.Attributes]; 66 get => (WixComponentSearchAttributes)this.Fields[(int)WixComponentSearchTupleFields.Attributes].AsNumber();
65 set => this.Set((int)WixComponentSearchTupleFields.Attributes, value); 67 set => this.Set((int)WixComponentSearchTupleFields.Attributes, (int)value);
66 } 68 }
67 } 69 }
68} \ No newline at end of file 70}