aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/FileTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/FileTuple.cs166
1 files changed, 83 insertions, 83 deletions
diff --git a/src/WixToolset.Data/Tuples/FileTuple.cs b/src/WixToolset.Data/Tuples/FileTuple.cs
index 95776257..7d1afdb7 100644
--- a/src/WixToolset.Data/Tuples/FileTuple.cs
+++ b/src/WixToolset.Data/Tuples/FileTuple.cs
@@ -2,50 +2,50 @@
2 2
3namespace WixToolset.Data 3namespace 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 File = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition File = new IntermediateSymbolDefinition(
10 TupleDefinitionType.File, 10 SymbolDefinitionType.File,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(FileTupleFields.ComponentRef), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(FileSymbolFields.ComponentRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(FileTupleFields.Name), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(FileSymbolFields.Name), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(FileTupleFields.ShortName), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(FileSymbolFields.ShortName), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(FileTupleFields.FileSize), IntermediateFieldType.Number), 16 new IntermediateFieldDefinition(nameof(FileSymbolFields.FileSize), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(FileTupleFields.Version), IntermediateFieldType.String), 17 new IntermediateFieldDefinition(nameof(FileSymbolFields.Version), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(FileTupleFields.Language), IntermediateFieldType.String), 18 new IntermediateFieldDefinition(nameof(FileSymbolFields.Language), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(FileTupleFields.Attributes), IntermediateFieldType.Number), 19 new IntermediateFieldDefinition(nameof(FileSymbolFields.Attributes), IntermediateFieldType.Number),
20 new IntermediateFieldDefinition(nameof(FileTupleFields.DirectoryRef), IntermediateFieldType.String), 20 new IntermediateFieldDefinition(nameof(FileSymbolFields.DirectoryRef), IntermediateFieldType.String),
21 new IntermediateFieldDefinition(nameof(FileTupleFields.DiskId), IntermediateFieldType.Number), 21 new IntermediateFieldDefinition(nameof(FileSymbolFields.DiskId), IntermediateFieldType.Number),
22 new IntermediateFieldDefinition(nameof(FileTupleFields.Source), IntermediateFieldType.Path), 22 new IntermediateFieldDefinition(nameof(FileSymbolFields.Source), IntermediateFieldType.Path),
23 23
24 new IntermediateFieldDefinition(nameof(FileTupleFields.FontTitle), IntermediateFieldType.String), 24 new IntermediateFieldDefinition(nameof(FileSymbolFields.FontTitle), IntermediateFieldType.String),
25 new IntermediateFieldDefinition(nameof(FileTupleFields.SelfRegCost), IntermediateFieldType.Number), 25 new IntermediateFieldDefinition(nameof(FileSymbolFields.SelfRegCost), IntermediateFieldType.Number),
26 new IntermediateFieldDefinition(nameof(FileTupleFields.BindPath), IntermediateFieldType.String), 26 new IntermediateFieldDefinition(nameof(FileSymbolFields.BindPath), IntermediateFieldType.String),
27 27
28 new IntermediateFieldDefinition(nameof(FileTupleFields.Sequence), IntermediateFieldType.Number), 28 new IntermediateFieldDefinition(nameof(FileSymbolFields.Sequence), IntermediateFieldType.Number),
29 29
30 new IntermediateFieldDefinition(nameof(FileTupleFields.PatchGroup), IntermediateFieldType.Number), 30 new IntermediateFieldDefinition(nameof(FileSymbolFields.PatchGroup), IntermediateFieldType.Number),
31 new IntermediateFieldDefinition(nameof(FileTupleFields.PatchAttributes), IntermediateFieldType.Number), 31 new IntermediateFieldDefinition(nameof(FileSymbolFields.PatchAttributes), IntermediateFieldType.Number),
32 new IntermediateFieldDefinition(nameof(FileTupleFields.DeltaPatchHeaderSource), IntermediateFieldType.String), 32 new IntermediateFieldDefinition(nameof(FileSymbolFields.DeltaPatchHeaderSource), IntermediateFieldType.String),
33 33
34 new IntermediateFieldDefinition(nameof(FileTupleFields.RetainLengths), IntermediateFieldType.String), 34 new IntermediateFieldDefinition(nameof(FileSymbolFields.RetainLengths), IntermediateFieldType.String),
35 new IntermediateFieldDefinition(nameof(FileTupleFields.IgnoreOffsets), IntermediateFieldType.String), 35 new IntermediateFieldDefinition(nameof(FileSymbolFields.IgnoreOffsets), IntermediateFieldType.String),
36 new IntermediateFieldDefinition(nameof(FileTupleFields.IgnoreLengths), IntermediateFieldType.String), 36 new IntermediateFieldDefinition(nameof(FileSymbolFields.IgnoreLengths), IntermediateFieldType.String),
37 new IntermediateFieldDefinition(nameof(FileTupleFields.RetainOffsets), IntermediateFieldType.String), 37 new IntermediateFieldDefinition(nameof(FileSymbolFields.RetainOffsets), IntermediateFieldType.String),
38 new IntermediateFieldDefinition(nameof(FileTupleFields.SymbolPaths), IntermediateFieldType.String), 38 new IntermediateFieldDefinition(nameof(FileSymbolFields.SymbolPaths), IntermediateFieldType.String),
39 }, 39 },
40 typeof(FileTuple)); 40 typeof(FileSymbol));
41 } 41 }
42} 42}
43 43
44namespace WixToolset.Data.Tuples 44namespace WixToolset.Data.Symbols
45{ 45{
46 using System; 46 using System;
47 47
48 public enum FileTupleFields 48 public enum FileSymbolFields
49 { 49 {
50 ComponentRef, 50 ComponentRef,
51 Name, 51 Name,
@@ -76,7 +76,7 @@ namespace WixToolset.Data.Tuples
76 } 76 }
77 77
78 [Flags] 78 [Flags]
79 public enum FileTupleAttributes : int 79 public enum FileSymbolAttributes : int
80 { 80 {
81 None = 0x0, 81 None = 0x0,
82 ReadOnly = 0x1, 82 ReadOnly = 0x1,
@@ -110,148 +110,148 @@ namespace WixToolset.Data.Tuples
110 Defined = Ignore | IncludeWholeFile | AllowIgnoreOnError 110 Defined = Ignore | IncludeWholeFile | AllowIgnoreOnError
111 } 111 }
112 112
113 public class FileTuple : IntermediateTuple 113 public class FileSymbol : IntermediateSymbol
114 { 114 {
115 public FileTuple() : base(TupleDefinitions.File, null, null) 115 public FileSymbol() : base(SymbolDefinitions.File, null, null)
116 { 116 {
117 } 117 }
118 118
119 public FileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.File, sourceLineNumber, id) 119 public FileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.File, sourceLineNumber, id)
120 { 120 {
121 } 121 }
122 122
123 public IntermediateField this[FileTupleFields index] => this.Fields[(int)index]; 123 public IntermediateField this[FileSymbolFields index] => this.Fields[(int)index];
124 124
125 public string ComponentRef 125 public string ComponentRef
126 { 126 {
127 get => (string)this.Fields[(int)FileTupleFields.ComponentRef]; 127 get => (string)this.Fields[(int)FileSymbolFields.ComponentRef];
128 set => this.Set((int)FileTupleFields.ComponentRef, value); 128 set => this.Set((int)FileSymbolFields.ComponentRef, value);
129 } 129 }
130 130
131 public string Name 131 public string Name
132 { 132 {
133 get => (string)this.Fields[(int)FileTupleFields.Name]; 133 get => (string)this.Fields[(int)FileSymbolFields.Name];
134 set => this.Set((int)FileTupleFields.Name, value); 134 set => this.Set((int)FileSymbolFields.Name, value);
135 } 135 }
136 136
137 public string ShortName 137 public string ShortName
138 { 138 {
139 get => (string)this.Fields[(int)FileTupleFields.ShortName]; 139 get => (string)this.Fields[(int)FileSymbolFields.ShortName];
140 set => this.Set((int)FileTupleFields.ShortName, value); 140 set => this.Set((int)FileSymbolFields.ShortName, value);
141 } 141 }
142 142
143 public int FileSize 143 public int FileSize
144 { 144 {
145 get => (int)this.Fields[(int)FileTupleFields.FileSize]; 145 get => (int)this.Fields[(int)FileSymbolFields.FileSize];
146 set => this.Set((int)FileTupleFields.FileSize, value); 146 set => this.Set((int)FileSymbolFields.FileSize, value);
147 } 147 }
148 148
149 public string Version 149 public string Version
150 { 150 {
151 get => (string)this.Fields[(int)FileTupleFields.Version]; 151 get => (string)this.Fields[(int)FileSymbolFields.Version];
152 set => this.Set((int)FileTupleFields.Version, value); 152 set => this.Set((int)FileSymbolFields.Version, value);
153 } 153 }
154 154
155 public string Language 155 public string Language
156 { 156 {
157 get => (string)this.Fields[(int)FileTupleFields.Language]; 157 get => (string)this.Fields[(int)FileSymbolFields.Language];
158 set => this.Set((int)FileTupleFields.Language, value); 158 set => this.Set((int)FileSymbolFields.Language, value);
159 } 159 }
160 160
161 public FileTupleAttributes Attributes 161 public FileSymbolAttributes Attributes
162 { 162 {
163 get => (FileTupleAttributes)this.Fields[(int)FileTupleFields.Attributes].AsNumber(); 163 get => (FileSymbolAttributes)this.Fields[(int)FileSymbolFields.Attributes].AsNumber();
164 set => this.Set((int)FileTupleFields.Attributes, (int)value); 164 set => this.Set((int)FileSymbolFields.Attributes, (int)value);
165 } 165 }
166 166
167 public string DirectoryRef 167 public string DirectoryRef
168 { 168 {
169 get => (string)this.Fields[(int)FileTupleFields.DirectoryRef]; 169 get => (string)this.Fields[(int)FileSymbolFields.DirectoryRef];
170 set => this.Set((int)FileTupleFields.DirectoryRef, value); 170 set => this.Set((int)FileSymbolFields.DirectoryRef, value);
171 } 171 }
172 172
173 public int? DiskId 173 public int? DiskId
174 { 174 {
175 get => (int?)this.Fields[(int)FileTupleFields.DiskId]; 175 get => (int?)this.Fields[(int)FileSymbolFields.DiskId];
176 set => this.Set((int)FileTupleFields.DiskId, value); 176 set => this.Set((int)FileSymbolFields.DiskId, value);
177 } 177 }
178 178
179 public IntermediateFieldPathValue Source 179 public IntermediateFieldPathValue Source
180 { 180 {
181 get => this.Fields[(int)FileTupleFields.Source].AsPath(); 181 get => this.Fields[(int)FileSymbolFields.Source].AsPath();
182 set => this.Set((int)FileTupleFields.Source, value); 182 set => this.Set((int)FileSymbolFields.Source, value);
183 } 183 }
184 184
185 public string FontTitle 185 public string FontTitle
186 { 186 {
187 get => (string)this.Fields[(int)FileTupleFields.FontTitle]; 187 get => (string)this.Fields[(int)FileSymbolFields.FontTitle];
188 set => this.Set((int)FileTupleFields.FontTitle, value); 188 set => this.Set((int)FileSymbolFields.FontTitle, value);
189 } 189 }
190 190
191 public int? SelfRegCost 191 public int? SelfRegCost
192 { 192 {
193 get => (int?)this.Fields[(int)FileTupleFields.SelfRegCost]; 193 get => (int?)this.Fields[(int)FileSymbolFields.SelfRegCost];
194 set => this.Set((int)FileTupleFields.SelfRegCost, value); 194 set => this.Set((int)FileSymbolFields.SelfRegCost, value);
195 } 195 }
196 196
197 public string BindPath 197 public string BindPath
198 { 198 {
199 get => (string)this.Fields[(int)FileTupleFields.BindPath]; 199 get => (string)this.Fields[(int)FileSymbolFields.BindPath];
200 set => this.Set((int)FileTupleFields.BindPath, value); 200 set => this.Set((int)FileSymbolFields.BindPath, value);
201 } 201 }
202 202
203 public int Sequence 203 public int Sequence
204 { 204 {
205 get => (int)this.Fields[(int)FileTupleFields.Sequence]; 205 get => (int)this.Fields[(int)FileSymbolFields.Sequence];
206 set => this.Set((int)FileTupleFields.Sequence, value); 206 set => this.Set((int)FileSymbolFields.Sequence, value);
207 } 207 }
208 208
209 public int? PatchGroup 209 public int? PatchGroup
210 { 210 {
211 get => (int?)this.Fields[(int)FileTupleFields.PatchGroup]; 211 get => (int?)this.Fields[(int)FileSymbolFields.PatchGroup];
212 set => this.Set((int)FileTupleFields.PatchGroup, value); 212 set => this.Set((int)FileSymbolFields.PatchGroup, value);
213 } 213 }
214 214
215 public PatchAttributeType? PatchAttributes 215 public PatchAttributeType? PatchAttributes
216 { 216 {
217 get => (PatchAttributeType?)this.Fields[(int)FileTupleFields.PatchAttributes].AsNullableNumber(); 217 get => (PatchAttributeType?)this.Fields[(int)FileSymbolFields.PatchAttributes].AsNullableNumber();
218 set => this.Set((int)FileTupleFields.PatchAttributes, (int?)value); 218 set => this.Set((int)FileSymbolFields.PatchAttributes, (int?)value);
219 } 219 }
220 220
221 public string DeltaPatchHeaderSource 221 public string DeltaPatchHeaderSource
222 { 222 {
223 get => (string)this.Fields[(int)FileTupleFields.DeltaPatchHeaderSource]; 223 get => (string)this.Fields[(int)FileSymbolFields.DeltaPatchHeaderSource];
224 set => this.Set((int)FileTupleFields.DeltaPatchHeaderSource, value); 224 set => this.Set((int)FileSymbolFields.DeltaPatchHeaderSource, value);
225 } 225 }
226 226
227 public string RetainLengths 227 public string RetainLengths
228 { 228 {
229 get => (string)this.Fields[(int)FileTupleFields.RetainLengths]; 229 get => (string)this.Fields[(int)FileSymbolFields.RetainLengths];
230 set => this.Set((int)FileTupleFields.RetainLengths, value); 230 set => this.Set((int)FileSymbolFields.RetainLengths, value);
231 } 231 }
232 232
233 public string IgnoreOffsets 233 public string IgnoreOffsets
234 { 234 {
235 get => (string)this.Fields[(int)FileTupleFields.IgnoreOffsets]; 235 get => (string)this.Fields[(int)FileSymbolFields.IgnoreOffsets];
236 set => this.Set((int)FileTupleFields.IgnoreOffsets, value); 236 set => this.Set((int)FileSymbolFields.IgnoreOffsets, value);
237 } 237 }
238 238
239 public string IgnoreLengths 239 public string IgnoreLengths
240 { 240 {
241 get => (string)this.Fields[(int)FileTupleFields.IgnoreLengths]; 241 get => (string)this.Fields[(int)FileSymbolFields.IgnoreLengths];
242 set => this.Set((int)FileTupleFields.IgnoreLengths, value); 242 set => this.Set((int)FileSymbolFields.IgnoreLengths, value);
243 } 243 }
244 244
245 public string RetainOffsets 245 public string RetainOffsets
246 { 246 {
247 get => (string)this.Fields[(int)FileTupleFields.RetainOffsets]; 247 get => (string)this.Fields[(int)FileSymbolFields.RetainOffsets];
248 set => this.Set((int)FileTupleFields.RetainOffsets, value); 248 set => this.Set((int)FileSymbolFields.RetainOffsets, value);
249 } 249 }
250 250
251 public string SymbolPaths 251 public string SymbolPaths
252 { 252 {
253 get => (string)this.Fields[(int)FileTupleFields.SymbolPaths]; 253 get => (string)this.Fields[(int)FileSymbolFields.SymbolPaths];
254 set => this.Set((int)FileTupleFields.SymbolPaths, value); 254 set => this.Set((int)FileSymbolFields.SymbolPaths, value);
255 } 255 }
256 } 256 }
257} 257}