diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/ServiceControlTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ServiceControlTuple.cs | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/src/WixToolset.Data/Tuples/ServiceControlTuple.cs b/src/WixToolset.Data/Tuples/ServiceControlTuple.cs index e34de0df..6e129681 100644 --- a/src/WixToolset.Data/Tuples/ServiceControlTuple.cs +++ b/src/WixToolset.Data/Tuples/ServiceControlTuple.cs | |||
| @@ -2,32 +2,32 @@ | |||
| 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 ServiceControl = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition ServiceControl = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.ServiceControl, | 10 | SymbolDefinitionType.ServiceControl, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Name), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Name), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallRemove), IntermediateFieldType.Bool), | 14 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallRemove), IntermediateFieldType.Bool), |
| 15 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallRemove), IntermediateFieldType.Bool), | 15 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallRemove), IntermediateFieldType.Bool), |
| 16 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallStart), IntermediateFieldType.Bool), | 16 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallStart), IntermediateFieldType.Bool), |
| 17 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallStart), IntermediateFieldType.Bool), | 17 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallStart), IntermediateFieldType.Bool), |
| 18 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallStop), IntermediateFieldType.Bool), | 18 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.InstallStop), IntermediateFieldType.Bool), |
| 19 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallStop), IntermediateFieldType.Bool), | 19 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.UninstallStop), IntermediateFieldType.Bool), |
| 20 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Arguments), IntermediateFieldType.String), | 20 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Arguments), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Wait), IntermediateFieldType.Bool), | 21 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.Wait), IntermediateFieldType.Bool), |
| 22 | new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.ComponentRef), IntermediateFieldType.String), | 22 | new IntermediateFieldDefinition(nameof(ServiceControlSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 23 | }, | 23 | }, |
| 24 | typeof(ServiceControlTuple)); | 24 | typeof(ServiceControlSymbol)); |
| 25 | } | 25 | } |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | namespace WixToolset.Data.Tuples | 28 | namespace WixToolset.Data.Symbols |
| 29 | { | 29 | { |
| 30 | public enum ServiceControlTupleFields | 30 | public enum ServiceControlSymbolFields |
| 31 | { | 31 | { |
| 32 | Name, | 32 | Name, |
| 33 | InstallRemove, | 33 | InstallRemove, |
| @@ -41,76 +41,76 @@ namespace WixToolset.Data.Tuples | |||
| 41 | ComponentRef, | 41 | ComponentRef, |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | public class ServiceControlTuple : IntermediateTuple | 44 | public class ServiceControlSymbol : IntermediateSymbol |
| 45 | { | 45 | { |
| 46 | public ServiceControlTuple() : base(TupleDefinitions.ServiceControl, null, null) | 46 | public ServiceControlSymbol() : base(SymbolDefinitions.ServiceControl, null, null) |
| 47 | { | 47 | { |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | public ServiceControlTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ServiceControl, sourceLineNumber, id) | 50 | public ServiceControlSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ServiceControl, sourceLineNumber, id) |
| 51 | { | 51 | { |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public IntermediateField this[ServiceControlTupleFields index] => this.Fields[(int)index]; | 54 | public IntermediateField this[ServiceControlSymbolFields index] => this.Fields[(int)index]; |
| 55 | 55 | ||
| 56 | public string Name | 56 | public string Name |
| 57 | { | 57 | { |
| 58 | get => (string)this.Fields[(int)ServiceControlTupleFields.Name]; | 58 | get => (string)this.Fields[(int)ServiceControlSymbolFields.Name]; |
| 59 | set => this.Set((int)ServiceControlTupleFields.Name, value); | 59 | set => this.Set((int)ServiceControlSymbolFields.Name, value); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | public bool InstallRemove | 62 | public bool InstallRemove |
| 63 | { | 63 | { |
| 64 | get => this.Fields[(int)ServiceControlTupleFields.InstallRemove].AsBool(); | 64 | get => this.Fields[(int)ServiceControlSymbolFields.InstallRemove].AsBool(); |
| 65 | set => this.Set((int)ServiceControlTupleFields.InstallRemove, value); | 65 | set => this.Set((int)ServiceControlSymbolFields.InstallRemove, value); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | public bool UninstallRemove | 68 | public bool UninstallRemove |
| 69 | { | 69 | { |
| 70 | get => this.Fields[(int)ServiceControlTupleFields.UninstallRemove].AsBool(); | 70 | get => this.Fields[(int)ServiceControlSymbolFields.UninstallRemove].AsBool(); |
| 71 | set => this.Set((int)ServiceControlTupleFields.UninstallRemove, value); | 71 | set => this.Set((int)ServiceControlSymbolFields.UninstallRemove, value); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public bool InstallStart | 74 | public bool InstallStart |
| 75 | { | 75 | { |
| 76 | get => this.Fields[(int)ServiceControlTupleFields.InstallStart].AsBool(); | 76 | get => this.Fields[(int)ServiceControlSymbolFields.InstallStart].AsBool(); |
| 77 | set => this.Set((int)ServiceControlTupleFields.InstallStart, value); | 77 | set => this.Set((int)ServiceControlSymbolFields.InstallStart, value); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | public bool UninstallStart | 80 | public bool UninstallStart |
| 81 | { | 81 | { |
| 82 | get => this.Fields[(int)ServiceControlTupleFields.UninstallStart].AsBool(); | 82 | get => this.Fields[(int)ServiceControlSymbolFields.UninstallStart].AsBool(); |
| 83 | set => this.Set((int)ServiceControlTupleFields.UninstallStart, value); | 83 | set => this.Set((int)ServiceControlSymbolFields.UninstallStart, value); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | public bool InstallStop | 86 | public bool InstallStop |
| 87 | { | 87 | { |
| 88 | get => this.Fields[(int)ServiceControlTupleFields.InstallStop].AsBool(); | 88 | get => this.Fields[(int)ServiceControlSymbolFields.InstallStop].AsBool(); |
| 89 | set => this.Set((int)ServiceControlTupleFields.InstallStop, value); | 89 | set => this.Set((int)ServiceControlSymbolFields.InstallStop, value); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | public bool UninstallStop | 92 | public bool UninstallStop |
| 93 | { | 93 | { |
| 94 | get => this.Fields[(int)ServiceControlTupleFields.UninstallStop].AsBool(); | 94 | get => this.Fields[(int)ServiceControlSymbolFields.UninstallStop].AsBool(); |
| 95 | set => this.Set((int)ServiceControlTupleFields.UninstallStop, value); | 95 | set => this.Set((int)ServiceControlSymbolFields.UninstallStop, value); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | public string Arguments | 98 | public string Arguments |
| 99 | { | 99 | { |
| 100 | get => (string)this.Fields[(int)ServiceControlTupleFields.Arguments]; | 100 | get => (string)this.Fields[(int)ServiceControlSymbolFields.Arguments]; |
| 101 | set => this.Set((int)ServiceControlTupleFields.Arguments, value); | 101 | set => this.Set((int)ServiceControlSymbolFields.Arguments, value); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | public bool? Wait | 104 | public bool? Wait |
| 105 | { | 105 | { |
| 106 | get => this.Fields[(int)ServiceControlTupleFields.Wait].AsNullableBool(); | 106 | get => this.Fields[(int)ServiceControlSymbolFields.Wait].AsNullableBool(); |
| 107 | set => this.Set((int)ServiceControlTupleFields.Wait, value); | 107 | set => this.Set((int)ServiceControlSymbolFields.Wait, value); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | public string ComponentRef | 110 | public string ComponentRef |
| 111 | { | 111 | { |
| 112 | get => (string)this.Fields[(int)ServiceControlTupleFields.ComponentRef]; | 112 | get => (string)this.Fields[(int)ServiceControlSymbolFields.ComponentRef]; |
| 113 | set => this.Set((int)ServiceControlTupleFields.ComponentRef, value); | 113 | set => this.Set((int)ServiceControlSymbolFields.ComponentRef, value); |
| 114 | } | 114 | } |
| 115 | } | 115 | } |
| 116 | } \ No newline at end of file | 116 | } \ No newline at end of file |
