main
cs 92 lines 3.63 KB
Raw
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.Data
4 {
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition HarvestFiles = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.HarvestFiles,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.DirectoryRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.Inclusions), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.Exclusions), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.ComplexReferenceParentType), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.ParentId), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.SourcePath), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(HarvestFilesSymbolFields.ModuleLanguage), IntermediateFieldType.String),
20 },
21 typeof(HarvestFilesSymbol));
22 }
23 }
24
25 namespace WixToolset.Data.Symbols
26 {
27 public enum HarvestFilesSymbolFields
28 {
29 DirectoryRef,
30 Inclusions,
31 Exclusions,
32 ComplexReferenceParentType,
33 ParentId,
34 SourcePath,
35 ModuleLanguage,
36 }
37
38 public class HarvestFilesSymbol : IntermediateSymbol
39 {
40 public HarvestFilesSymbol() : base(SymbolDefinitions.HarvestFiles, null, null)
41 {
42 }
43
44 public HarvestFilesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.HarvestFiles, sourceLineNumber, id)
45 {
46 }
47
48 public IntermediateField this[HarvestFilesSymbolFields index] => this.Fields[(int)index];
49
50 public string DirectoryRef
51 {
52 get => (string)this.Fields[(int)HarvestFilesSymbolFields.DirectoryRef];
53 set => this.Set((int)HarvestFilesSymbolFields.DirectoryRef, value);
54 }
55
56 public string Inclusions
57 {
58 get => (string)this.Fields[(int)HarvestFilesSymbolFields.Inclusions];
59 set => this.Set((int)HarvestFilesSymbolFields.Inclusions, value);
60 }
61
62 public string Exclusions
63 {
64 get => (string)this.Fields[(int)HarvestFilesSymbolFields.Exclusions];
65 set => this.Set((int)HarvestFilesSymbolFields.Exclusions, value);
66 }
67
68 public string ComplexReferenceParentType
69 {
70 get => (string)this.Fields[(int)HarvestFilesSymbolFields.ComplexReferenceParentType];
71 set => this.Set((int)HarvestFilesSymbolFields.ComplexReferenceParentType, value);
72 }
73
74 public string ParentId
75 {
76 get => (string)this.Fields[(int)HarvestFilesSymbolFields.ParentId];
77 set => this.Set((int)HarvestFilesSymbolFields.ParentId, value);
78 }
79
80 public string SourcePath
81 {
82 get => (string)this.Fields[(int)HarvestFilesSymbolFields.SourcePath];
83 set => this.Set((int)HarvestFilesSymbolFields.SourcePath, value);
84 }
85
86 public string ModuleLanguage
87 {
88 get => (string)this.Fields[(int)HarvestFilesSymbolFields.ModuleLanguage];
89 set => this.Set((int)HarvestFilesSymbolFields.ModuleLanguage, value);
90 }
91 }
92 }