diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixFileSearchTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixFileSearchTuple.cs | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/WixToolset.Data/Tuples/WixFileSearchTuple.cs b/src/WixToolset.Data/Tuples/WixFileSearchTuple.cs index 033aca21..027605c7 100644 --- a/src/WixToolset.Data/Tuples/WixFileSearchTuple.cs +++ b/src/WixToolset.Data/Tuples/WixFileSearchTuple.cs | |||
| @@ -2,33 +2,33 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition WixFileSearch = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition WixFileSearch = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.WixFileSearch, | 10 | SymbolDefinitionType.WixFileSearch, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.Path), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Path), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MinVersion), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinVersion), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MaxVersion), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxVersion), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MinSize), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinSize), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MaxSize), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxSize), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MinDate), IntermediateFieldType.Number), | 18 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MinDate), IntermediateFieldType.Number), |
| 19 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.MaxDate), IntermediateFieldType.Number), | 19 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.MaxDate), IntermediateFieldType.Number), |
| 20 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.Languages), IntermediateFieldType.String), | 20 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Languages), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(WixFileSearchTupleFields.Attributes), IntermediateFieldType.Number), | 21 | new IntermediateFieldDefinition(nameof(WixFileSearchSymbolFields.Attributes), IntermediateFieldType.Number), |
| 22 | }, | 22 | }, |
| 23 | typeof(WixFileSearchTuple)); | 23 | typeof(WixFileSearchSymbol)); |
| 24 | } | 24 | } |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | namespace WixToolset.Data.Tuples | 27 | namespace WixToolset.Data.Symbols |
| 28 | { | 28 | { |
| 29 | using System; | 29 | using System; |
| 30 | 30 | ||
| 31 | public enum WixFileSearchTupleFields | 31 | public enum WixFileSearchSymbolFields |
| 32 | { | 32 | { |
| 33 | Path, | 33 | Path, |
| 34 | MinVersion, | 34 | MinVersion, |
| @@ -56,70 +56,70 @@ namespace WixToolset.Data.Tuples | |||
| 56 | IsDirectory = 0x200, | 56 | IsDirectory = 0x200, |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | public class WixFileSearchTuple : IntermediateTuple | 59 | public class WixFileSearchSymbol : IntermediateSymbol |
| 60 | { | 60 | { |
| 61 | public WixFileSearchTuple() : base(TupleDefinitions.WixFileSearch, null, null) | 61 | public WixFileSearchSymbol() : base(SymbolDefinitions.WixFileSearch, null, null) |
| 62 | { | 62 | { |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | public WixFileSearchTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixFileSearch, sourceLineNumber, id) | 65 | public WixFileSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixFileSearch, sourceLineNumber, id) |
| 66 | { | 66 | { |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | public IntermediateField this[WixFileSearchTupleFields index] => this.Fields[(int)index]; | 69 | public IntermediateField this[WixFileSearchSymbolFields index] => this.Fields[(int)index]; |
| 70 | 70 | ||
| 71 | public string Path | 71 | public string Path |
| 72 | { | 72 | { |
| 73 | get => (string)this.Fields[(int)WixFileSearchTupleFields.Path]; | 73 | get => (string)this.Fields[(int)WixFileSearchSymbolFields.Path]; |
| 74 | set => this.Set((int)WixFileSearchTupleFields.Path, value); | 74 | set => this.Set((int)WixFileSearchSymbolFields.Path, value); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | public string MinVersion | 77 | public string MinVersion |
| 78 | { | 78 | { |
| 79 | get => (string)this.Fields[(int)WixFileSearchTupleFields.MinVersion]; | 79 | get => (string)this.Fields[(int)WixFileSearchSymbolFields.MinVersion]; |
| 80 | set => this.Set((int)WixFileSearchTupleFields.MinVersion, value); | 80 | set => this.Set((int)WixFileSearchSymbolFields.MinVersion, value); |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | public string MaxVersion | 83 | public string MaxVersion |
| 84 | { | 84 | { |
| 85 | get => (string)this.Fields[(int)WixFileSearchTupleFields.MaxVersion]; | 85 | get => (string)this.Fields[(int)WixFileSearchSymbolFields.MaxVersion]; |
| 86 | set => this.Set((int)WixFileSearchTupleFields.MaxVersion, value); | 86 | set => this.Set((int)WixFileSearchSymbolFields.MaxVersion, value); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | public int? MinSize | 89 | public int? MinSize |
| 90 | { | 90 | { |
| 91 | get => (int?)this.Fields[(int)WixFileSearchTupleFields.MinSize]; | 91 | get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MinSize]; |
| 92 | set => this.Set((int)WixFileSearchTupleFields.MinSize, value); | 92 | set => this.Set((int)WixFileSearchSymbolFields.MinSize, value); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | public int? MaxSize | 95 | public int? MaxSize |
| 96 | { | 96 | { |
| 97 | get => (int?)this.Fields[(int)WixFileSearchTupleFields.MaxSize]; | 97 | get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MaxSize]; |
| 98 | set => this.Set((int)WixFileSearchTupleFields.MaxSize, value); | 98 | set => this.Set((int)WixFileSearchSymbolFields.MaxSize, value); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | public int? MinDate | 101 | public int? MinDate |
| 102 | { | 102 | { |
| 103 | get => (int?)this.Fields[(int)WixFileSearchTupleFields.MinDate]; | 103 | get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MinDate]; |
| 104 | set => this.Set((int)WixFileSearchTupleFields.MinDate, value); | 104 | set => this.Set((int)WixFileSearchSymbolFields.MinDate, value); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | public int? MaxDate | 107 | public int? MaxDate |
| 108 | { | 108 | { |
| 109 | get => (int?)this.Fields[(int)WixFileSearchTupleFields.MaxDate]; | 109 | get => (int?)this.Fields[(int)WixFileSearchSymbolFields.MaxDate]; |
| 110 | set => this.Set((int)WixFileSearchTupleFields.MaxDate, value); | 110 | set => this.Set((int)WixFileSearchSymbolFields.MaxDate, value); |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | public string Languages | 113 | public string Languages |
| 114 | { | 114 | { |
| 115 | get => (string)this.Fields[(int)WixFileSearchTupleFields.Languages]; | 115 | get => (string)this.Fields[(int)WixFileSearchSymbolFields.Languages]; |
| 116 | set => this.Set((int)WixFileSearchTupleFields.Languages, value); | 116 | set => this.Set((int)WixFileSearchSymbolFields.Languages, value); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | public WixFileSearchAttributes Attributes | 119 | public WixFileSearchAttributes Attributes |
| 120 | { | 120 | { |
| 121 | get => (WixFileSearchAttributes)this.Fields[(int)WixFileSearchTupleFields.Attributes].AsNumber(); | 121 | get => (WixFileSearchAttributes)this.Fields[(int)WixFileSearchSymbolFields.Attributes].AsNumber(); |
| 122 | set => this.Set((int)WixFileSearchTupleFields.Attributes, (int)value); | 122 | set => this.Set((int)WixFileSearchSymbolFields.Attributes, (int)value); |
| 123 | } | 123 | } |
| 124 | } | 124 | } |
| 125 | } | 125 | } |
