1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
// 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.
namespace WixToolset.Data
{
using WixToolset.Data.Tuples;
public static partial class TupleDefinitions
{
public static readonly IntermediateTupleDefinition Directory = new IntermediateTupleDefinition(
TupleDefinitionType.Directory,
new[]
{
new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ParentDirectoryRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(DirectoryTupleFields.Name), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ShortName), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceName), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceShortName), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ComponentGuidGenerationSeed), IntermediateFieldType.String),
},
typeof(DirectoryTuple));
}
}
namespace WixToolset.Data.Tuples
{
public enum DirectoryTupleFields
{
ParentDirectoryRef,
Name,
ShortName,
SourceName,
SourceShortName,
ComponentGuidGenerationSeed,
}
public class DirectoryTuple : IntermediateTuple
{
public DirectoryTuple() : base(TupleDefinitions.Directory, null, null)
{
}
public DirectoryTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Directory, sourceLineNumber, id)
{
}
public IntermediateField this[DirectoryTupleFields index] => this.Fields[(int)index];
public string ParentDirectoryRef
{
get => (string)this.Fields[(int)DirectoryTupleFields.ParentDirectoryRef];
set => this.Set((int)DirectoryTupleFields.ParentDirectoryRef, value);
}
public string Name
{
get => (string)this.Fields[(int)DirectoryTupleFields.Name];
set => this.Set((int)DirectoryTupleFields.Name, value);
}
public string ShortName
{
get => (string)this.Fields[(int)DirectoryTupleFields.ShortName];
set => this.Set((int)DirectoryTupleFields.ShortName, value);
}
public string SourceName
{
get => (string)this.Fields[(int)DirectoryTupleFields.SourceName];
set => this.Set((int)DirectoryTupleFields.SourceName, value);
}
public string SourceShortName
{
get => (string)this.Fields[(int)DirectoryTupleFields.SourceShortName];
set => this.Set((int)DirectoryTupleFields.SourceShortName, value);
}
public string ComponentGuidGenerationSeed
{
get => (string)this.Fields[(int)DirectoryTupleFields.ComponentGuidGenerationSeed];
set => this.Set((int)DirectoryTupleFields.ComponentGuidGenerationSeed, value);
}
}
}
|