aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs')
-rw-r--r--src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs b/src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs
new file mode 100644
index 00000000..c444b834
--- /dev/null
+++ b/src/WixToolset.Data/Symbols/ODBCTranslatorSymbol.cs
@@ -0,0 +1,68 @@
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.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition ODBCTranslator = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.ODBCTranslator,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.ComponentRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.Description), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.FileRef), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(ODBCTranslatorSymbolFields.SetupFileRef), IntermediateFieldType.String),
17 },
18 typeof(ODBCTranslatorSymbol));
19 }
20}
21
22namespace WixToolset.Data.Symbols
23{
24 public enum ODBCTranslatorSymbolFields
25 {
26 ComponentRef,
27 Description,
28 FileRef,
29 SetupFileRef,
30 }
31
32 public class ODBCTranslatorSymbol : IntermediateSymbol
33 {
34 public ODBCTranslatorSymbol() : base(SymbolDefinitions.ODBCTranslator, null, null)
35 {
36 }
37
38 public ODBCTranslatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ODBCTranslator, sourceLineNumber, id)
39 {
40 }
41
42 public IntermediateField this[ODBCTranslatorSymbolFields index] => this.Fields[(int)index];
43
44 public string ComponentRef
45 {
46 get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.ComponentRef];
47 set => this.Set((int)ODBCTranslatorSymbolFields.ComponentRef, value);
48 }
49
50 public string Description
51 {
52 get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.Description];
53 set => this.Set((int)ODBCTranslatorSymbolFields.Description, value);
54 }
55
56 public string FileRef
57 {
58 get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.FileRef];
59 set => this.Set((int)ODBCTranslatorSymbolFields.FileRef, value);
60 }
61
62 public string SetupFileRef
63 {
64 get => (string)this.Fields[(int)ODBCTranslatorSymbolFields.SetupFileRef];
65 set => this.Set((int)ODBCTranslatorSymbolFields.SetupFileRef, value);
66 }
67 }
68}