diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
| commit | 69b15d96cebdbb7201b1849b4f62786633d70b8d (patch) | |
| tree | 4b65de8679e4b4ab81b69edcccbac1ae9f55a16d /src/WixToolset.Data/Tuples/ServiceInstallTuple.cs | |
| parent | a8656a87887d6cb2c54f4bbeacee37f7074f1032 (diff) | |
| download | wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.gz wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.bz2 wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.zip | |
Introduce WiX Intermediate Representation
Diffstat (limited to 'src/WixToolset.Data/Tuples/ServiceInstallTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ServiceInstallTuple.cs | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs b/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs new file mode 100644 index 00000000..cd02d21e --- /dev/null +++ b/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs | |||
| @@ -0,0 +1,140 @@ | |||
| 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.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition ServiceInstall = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.ServiceInstall, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.ServiceInstall), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Name), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.DisplayName), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.ServiceType), IntermediateFieldType.Number), | ||
| 17 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.StartType), IntermediateFieldType.Number), | ||
| 18 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.ErrorControl), IntermediateFieldType.Number), | ||
| 19 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.LoadOrderGroup), IntermediateFieldType.String), | ||
| 20 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Dependencies), IntermediateFieldType.String), | ||
| 21 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.StartName), IntermediateFieldType.String), | ||
| 22 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Password), IntermediateFieldType.String), | ||
| 23 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Arguments), IntermediateFieldType.String), | ||
| 24 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Component_), IntermediateFieldType.String), | ||
| 25 | new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Description), IntermediateFieldType.String), | ||
| 26 | }, | ||
| 27 | typeof(ServiceInstallTuple)); | ||
| 28 | } | ||
| 29 | } | ||
| 30 | |||
| 31 | namespace WixToolset.Data.Tuples | ||
| 32 | { | ||
| 33 | public enum ServiceInstallTupleFields | ||
| 34 | { | ||
| 35 | ServiceInstall, | ||
| 36 | Name, | ||
| 37 | DisplayName, | ||
| 38 | ServiceType, | ||
| 39 | StartType, | ||
| 40 | ErrorControl, | ||
| 41 | LoadOrderGroup, | ||
| 42 | Dependencies, | ||
| 43 | StartName, | ||
| 44 | Password, | ||
| 45 | Arguments, | ||
| 46 | Component_, | ||
| 47 | Description, | ||
| 48 | } | ||
| 49 | |||
| 50 | public class ServiceInstallTuple : IntermediateTuple | ||
| 51 | { | ||
| 52 | public ServiceInstallTuple() : base(TupleDefinitions.ServiceInstall, null, null) | ||
| 53 | { | ||
| 54 | } | ||
| 55 | |||
| 56 | public ServiceInstallTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ServiceInstall, sourceLineNumber, id) | ||
| 57 | { | ||
| 58 | } | ||
| 59 | |||
| 60 | public IntermediateField this[ServiceInstallTupleFields index] => this.Fields[(int)index]; | ||
| 61 | |||
| 62 | public string ServiceInstall | ||
| 63 | { | ||
| 64 | get => (string)this.Fields[(int)ServiceInstallTupleFields.ServiceInstall]?.Value; | ||
| 65 | set => this.Set((int)ServiceInstallTupleFields.ServiceInstall, value); | ||
| 66 | } | ||
| 67 | |||
| 68 | public string Name | ||
| 69 | { | ||
| 70 | get => (string)this.Fields[(int)ServiceInstallTupleFields.Name]?.Value; | ||
| 71 | set => this.Set((int)ServiceInstallTupleFields.Name, value); | ||
| 72 | } | ||
| 73 | |||
| 74 | public string DisplayName | ||
| 75 | { | ||
| 76 | get => (string)this.Fields[(int)ServiceInstallTupleFields.DisplayName]?.Value; | ||
| 77 | set => this.Set((int)ServiceInstallTupleFields.DisplayName, value); | ||
| 78 | } | ||
| 79 | |||
| 80 | public int ServiceType | ||
| 81 | { | ||
| 82 | get => (int)this.Fields[(int)ServiceInstallTupleFields.ServiceType]?.Value; | ||
| 83 | set => this.Set((int)ServiceInstallTupleFields.ServiceType, value); | ||
| 84 | } | ||
| 85 | |||
| 86 | public int StartType | ||
| 87 | { | ||
| 88 | get => (int)this.Fields[(int)ServiceInstallTupleFields.StartType]?.Value; | ||
| 89 | set => this.Set((int)ServiceInstallTupleFields.StartType, value); | ||
| 90 | } | ||
| 91 | |||
| 92 | public int ErrorControl | ||
| 93 | { | ||
| 94 | get => (int)this.Fields[(int)ServiceInstallTupleFields.ErrorControl]?.Value; | ||
| 95 | set => this.Set((int)ServiceInstallTupleFields.ErrorControl, value); | ||
| 96 | } | ||
| 97 | |||
| 98 | public string LoadOrderGroup | ||
| 99 | { | ||
| 100 | get => (string)this.Fields[(int)ServiceInstallTupleFields.LoadOrderGroup]?.Value; | ||
| 101 | set => this.Set((int)ServiceInstallTupleFields.LoadOrderGroup, value); | ||
| 102 | } | ||
| 103 | |||
| 104 | public string Dependencies | ||
| 105 | { | ||
| 106 | get => (string)this.Fields[(int)ServiceInstallTupleFields.Dependencies]?.Value; | ||
| 107 | set => this.Set((int)ServiceInstallTupleFields.Dependencies, value); | ||
| 108 | } | ||
| 109 | |||
| 110 | public string StartName | ||
| 111 | { | ||
| 112 | get => (string)this.Fields[(int)ServiceInstallTupleFields.StartName]?.Value; | ||
| 113 | set => this.Set((int)ServiceInstallTupleFields.StartName, value); | ||
| 114 | } | ||
| 115 | |||
| 116 | public string Password | ||
| 117 | { | ||
| 118 | get => (string)this.Fields[(int)ServiceInstallTupleFields.Password]?.Value; | ||
| 119 | set => this.Set((int)ServiceInstallTupleFields.Password, value); | ||
| 120 | } | ||
| 121 | |||
| 122 | public string Arguments | ||
| 123 | { | ||
| 124 | get => (string)this.Fields[(int)ServiceInstallTupleFields.Arguments]?.Value; | ||
| 125 | set => this.Set((int)ServiceInstallTupleFields.Arguments, value); | ||
| 126 | } | ||
| 127 | |||
| 128 | public string Component_ | ||
| 129 | { | ||
| 130 | get => (string)this.Fields[(int)ServiceInstallTupleFields.Component_]?.Value; | ||
| 131 | set => this.Set((int)ServiceInstallTupleFields.Component_, value); | ||
| 132 | } | ||
| 133 | |||
| 134 | public string Description | ||
| 135 | { | ||
| 136 | get => (string)this.Fields[(int)ServiceInstallTupleFields.Description]?.Value; | ||
| 137 | set => this.Set((int)ServiceInstallTupleFields.Description, value); | ||
| 138 | } | ||
| 139 | } | ||
| 140 | } \ No newline at end of file | ||
