aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Rows/WixFileRow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Rows/WixFileRow.cs')
-rw-r--r--src/WixToolset.Data/Rows/WixFileRow.cs161
1 files changed, 0 insertions, 161 deletions
diff --git a/src/WixToolset.Data/Rows/WixFileRow.cs b/src/WixToolset.Data/Rows/WixFileRow.cs
deleted file mode 100644
index 52723f88..00000000
--- a/src/WixToolset.Data/Rows/WixFileRow.cs
+++ /dev/null
@@ -1,161 +0,0 @@
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.Rows
4{
5 /// <summary>
6 /// Specialization of a row for the WixFile table.
7 /// </summary>
8 public sealed class WixFileRow : Row
9 {
10 /// <summary>
11 /// Creates a WixFile row that does not belong to a table.
12 /// </summary>
13 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
14 /// <param name="tableDef">TableDefinition this row belongs to and should get its column definitions from.</param>
15 public WixFileRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDef) :
16 base(sourceLineNumbers, tableDef)
17 {
18 }
19
20 /// <summary>
21 /// Creates a WixFile row that belongs to a table.
22 /// </summary>
23 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
24 /// <param name="table">Table this row belongs to and should get its column definitions from.</param>
25 public WixFileRow(SourceLineNumber sourceLineNumbers, Table table) :
26 base(sourceLineNumbers, table)
27 {
28 }
29
30 /// <summary>
31 /// Gets or sets the primary key of the file row.
32 /// </summary>
33 /// <value>Primary key of the file row.</value>
34 public string File
35 {
36 get { return (string)this.Fields[0].Data; }
37 set { this.Fields[0].Data = value; }
38 }
39
40 /// <summary>
41 /// Gets or sets the assembly type of the file row.
42 /// </summary>
43 /// <value>Assembly type of the file row.</value>
44 public FileAssemblyType AssemblyType
45 {
46 get { return (null == this.Fields[1]) ? FileAssemblyType.NotAnAssembly : (FileAssemblyType)this.Fields[1].AsInteger(); }
47 set { this.Fields[1].Data = (int)value; }
48 }
49
50 /// <summary>
51 /// Gets or sets the identifier for the assembly manifest.
52 /// </summary>
53 /// <value>Identifier for the assembly manifest.</value>
54 public string AssemblyManifest
55 {
56 get { return (string)this.Fields[2].Data; }
57 set { this.Fields[2].Data = value; }
58 }
59
60 /// <summary>
61 /// Gets or sets the application for the assembly.
62 /// </summary>
63 /// <value>Application for the assembly.</value>
64 public string AssemblyApplication
65 {
66 get { return (string)this.Fields[3].Data; }
67 set { this.Fields[3].Data = value; }
68 }
69
70 /// <summary>
71 /// Gets or sets the directory of the file.
72 /// </summary>
73 /// <value>Directory of the file.</value>
74 public string Directory
75 {
76 get { return (string)this.Fields[4].Data; }
77 set { this.Fields[4].Data = value; }
78 }
79
80 /// <summary>
81 /// Gets or sets the disk id for this file.
82 /// </summary>
83 /// <value>Disk id for the file.</value>
84 public int DiskId
85 {
86 get { return (int)this.Fields[5].Data; }
87 set { this.Fields[5].Data = value; }
88 }
89
90 /// <summary>
91 /// Gets or sets the source location to the file.
92 /// </summary>
93 /// <value>Source location to the file.</value>
94 public string Source
95 {
96 get { return (string)this.Fields[6].Data; }
97 set { this.Fields[6].Data = value; }
98 }
99
100 /// <summary>
101 /// Gets or sets the source location to the file.
102 /// </summary>
103 /// <value>Source location to the file.</value>
104 public string PreviousSource
105 {
106 get { return (string)this.Fields[6].PreviousData; }
107 set { this.Fields[6].PreviousData = value; }
108 }
109
110 /// <summary>
111 /// Gets or sets the architecture the file executes on.
112 /// </summary>
113 /// <value>Architecture the file executes on.</value>
114 public string ProcessorArchitecture
115 {
116 get { return (string)this.Fields[7].Data; }
117 set { this.Fields[7].Data = value; }
118 }
119
120 /// <summary>
121 /// Gets or sets the patch group of a patch-added file.
122 /// </summary>
123 /// <value>The patch group of a patch-added file.</value>
124 public int PatchGroup
125 {
126 get { return (null == this.Fields[8].Data) ? 0 : (int)this.Fields[8].Data; }
127 set { this.Fields[8].Data = value; }
128 }
129
130 /// <summary>
131 /// Gets or sets the attributes on a file.
132 /// </summary>
133 /// <value>Attributes on a file.</value>
134 public int Attributes
135 {
136 get { return (int)this.Fields[9].Data; }
137 set { this.Fields[9].Data = value; }
138 }
139
140 /// <summary>
141 /// Gets or sets the patching attributes to the file.
142 /// </summary>
143 /// <value>Patching attributes of the file.</value>
144 public PatchAttributeType PatchAttributes
145 {
146 get { return (PatchAttributeType)this.Fields[10].AsInteger(); }
147 set { this.Fields[10].Data = (int)value; }
148 }
149
150 /// <summary>
151 /// Gets or sets the path to the delta patch header.
152 /// </summary>
153 /// <value>Patch header path.</value>
154 /// <remarks>Set by the binder only when doing delta patching.</remarks>
155 public string DeltaPatchHeaderSource
156 {
157 get { return (string)this.Fields[11].Data; }
158 set { this.Fields[11].Data = value; }
159 }
160 }
161}