summaryrefslogtreecommitdiff
path: root/xsd/dist/etc/vc-8.0/xsd-cxx-tree.rules
blob: b3e921a70dfa94eabe3d0a3659688af0c248a6d0 (plain)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<?xml version="1.0" encoding="utf-8"?>
<VisualStudioToolFile
	Name="CodeSynthesis XSD Compiler C++/Tree Mapping Rules"
	Version="8.00"
	>
	<Rules>
		<CustomBuildRule
			Name="C++/Tree Mapping Rule"
			DisplayName="C++/Tree Mapping Rule"
			CommandLine="xsd.exe cxx-tree [AllOptions] [AdditionalOptions] [Inputs]"
			Outputs="[$OutDir]\$(InputName)[$HeaderSuffix];[$OutDir]\$(InputName)[$SourceSuffix]"
			FileExtensions="*.xsd"
			ExecutionDescription="xsd cxx-tree [Inputs]"
			ShowOnlyRuleProperties="false"
			>
			<Properties>
				<StringProperty
					Name="OutDir"
					DisplayName="Output Directory"
					Category="Output"
					Description="Output directory for the generated files"
					Switch="--output-dir [value]"
					DefaultValue="."
				/>
				<BooleanProperty
					Name="ProprietaryLicense"
					DisplayName="Proprietary License"
					Category="Licensing"
					Description="Indicate that the generated code is licensed under a proprietary license instead of the GPL."
					Switch="--proprietary-license"
				/>
				<StringProperty
					Name="HeaderSuffix"
					DisplayName="C++ Header Suffix "
					Category="Output"
					Description="Generated C++ header file suffix"
					Switch="--hxx-suffix [value]"
					DefaultValue=".hxx"
				/>
				<StringProperty
					Name="SourceSuffix"
					DisplayName="C++ Source Suffix"
					Category="Output"
					Description="Generated C++ source file suffix"
					Switch="--cxx-suffix [value]"
					DefaultValue=".cxx"
				/>
				<StringProperty
					Name="InlineSuffix"
					DisplayName="C++ Inline Suffix"
					Category="Output"
					Description="Generated C++ inline file suffix"
					Switch="--ixx-suffix [value]"
					DefaultValue=".ixx"
				/>
				<StringProperty
					Name="ForwardSuffix"
					DisplayName="C++ Forward Declaration Suffix"
					Category="Output"
					Description="Generated C++ forward declaration file suffix"
					Switch="--fwd-suffix [value]"
					DefaultValue="-fwd.hxx"
				/>
				<EnumProperty
					Name="CharType"
					DisplayName="Char Type"
					PropertyPageName="Code Generation"
					Description="Character type to be used in the generated code."
					>
					<Values>
						<EnumValue
							Value="0"
							DisplayName="char"
						/>
						<EnumValue
							Value="1"
							Switch="--char-type wchar_t"
							DisplayName="wchar_t"
						/>
					</Values>
				</EnumProperty>
				<EnumProperty
					Name="CharEncoding"
					DisplayName="Char Encoding"
					PropertyPageName="Code Generation"
					Description="Character encoding to be used bu the generated code."
					>
					<Values>
						<EnumValue
							Value="0"
							DisplayName="UTF-8 (char)/UTF-16 (wchar_t)"
						/>
						<EnumValue
							Value="1"
							Switch="--char-encoding iso8859-1"
							DisplayName="ISO-8859-1"
						/>
						<EnumValue
							Value="2"
							Switch="--char-encoding lcp"
							DisplayName="Xerces-C++ local code page"
						/>
						<EnumValue
							Value="3"
							Switch="--char-encoding custom"
							DisplayName="Custom encoding"
						/>
					</Values>
				</EnumProperty>
				<StringProperty
					Name="NamespaceMap"
					DisplayName="Namespace Map"
					PropertyPageName="Code Generation"
					Description="Map XML Schema namespaces to C++ namespaces by specifying a comma-separated list of mapping rules in the form &lt;xml-ns&gt;=&lt;cxx-ns&gt; where &lt;xml-ns&gt; stands for an XML Schema namespace and &lt;cxx-ns&gt; - for a C++ namespace."
					Switch="--namespace-map [value]"
					Delimited="true"
					Delimiters=","
				/>
				<BooleanProperty
					Name="GenInline"
					DisplayName="Generate Inline"
					PropertyPageName="Code Generation"
					Description="Generate simple functions inline. This option triggers creation of the inline file."
					Switch="--generate-inline"
				/>
				<BooleanProperty
					Name="GenForward"
					DisplayName="Generate Forward"
					PropertyPageName="Code Generation"
					Description="Generate a separate header file with forward declarations for the types being generated."
					Switch="--generate-forward"
				/>
				<BooleanProperty
					Name="GenSerialization"
					DisplayName="Generate Serialization"
					PropertyPageName="Code Generation"
					Description="Generate serialization functions. Serialization functions convert the object model back to XML."
					Switch="--generate-serialization"
				/>
				<BooleanProperty
					Name="SupParsing"
					DisplayName="Suppress Parsing"
					PropertyPageName="Code Generation"
					Description="Suppress generation of the parsing functions and constructors."
					Switch="--suppress-parsing"
				/>
				<BooleanProperty
					Name="GenPolymorphic"
					DisplayName="Generate Polymorphic"
					PropertyPageName="Code Generation"
					Description="Generate polymorphism-aware code. Specify this option if you use substitution groups or xsi:type."
					Switch="--generate-polymorphic"
				/>
				<StringProperty
					Name="PolymorphicType"
					DisplayName="Polymorphic Types"
					PropertyPageName="Code Generation"
					Description="Treat specified comma-separated list of types as roots of polymorphic type hierarchies."
					Switch="--polymorphic-type [value]"
					Delimited="true"
					Delimiters=","
				/>
				<BooleanProperty
					Name="PolymorphicTypeAll"
					DisplayName="All Types Polymorphic"
					PropertyPageName="Code Generation"
					Description="Indicate that all types should be treated as polymorphic."
					Switch="--polymorphic-type-all"
				/>
				<BooleanProperty
					Name="GenOstream"
					DisplayName="Generate Ostream"
					PropertyPageName="Code Generation"
					Description="Generate ostream insertion operators for generated types. This allows to easily print a fragment or the whole object model for debugging or logging."
					Switch="--generate-ostream"
				/>
				<BooleanProperty
					Name="GenDoxygen"
					DisplayName="Generate Doxygen"
					PropertyPageName="Code Generation"
					Description="Generate documentation comments suitable for extraction by the Doxygen documentation system."
					Switch="--generate-doxygen"
				/>
				<BooleanProperty
					Name="GenComparison"
					DisplayName="Generate Comparison"
					PropertyPageName="Code Generation"
					Description="Generate comparison operators for complex types."
					Switch="--generate-comparison"
				/>
				<BooleanProperty
					Name="GenDefaultCtor"
					DisplayName="Generate Default Constructors"
					PropertyPageName="Code Generation"
					Description="Generate default constructors even for types that have required members."
					Switch="--generate-default-ctor"
				/>
				<BooleanProperty
					Name="GenFromBaseCtor"
					DisplayName="Generate From-Base Constructors"
					PropertyPageName="Code Generation"
					Description="Generate constructors that expect an instance of a base type followed by all required members."
					Switch="--generate-from-base-ctor"
				/>
				<BooleanProperty
					Name="GenDetach"
					DisplayName="Generate Detach"
					PropertyPageName="Code Generation"
					Description="Generate detach functions for required elements and attributes."
					Switch="--generate-detach"
				/>
				<BooleanProperty
					Name="GenWildcard"
					DisplayName="Generate Wildcard"
					PropertyPageName="Code Generation"
					Description="Generate accessors and modifiers as well as parsing and serialization code for XML Schema wildcards (any and anyAttribute)."
					Switch="--generate-wildcard"
				/>
				<BooleanProperty
					Name="GenElementType"
					DisplayName="Generate Element Types"
					PropertyPageName="Code Generation"
					Description="Generate types instead of parsing and serialization functions for root elements."
					Switch="--generate-element-type"
				/>
				<BooleanProperty
					Name="GenElementMap"
					DisplayName="Generate Element Map"
					PropertyPageName="Code Generation"
					Description="Generate a root element map that allows uniform parsing and serialization of multiple root elements."
					Switch="--generate-element-map"
				/>
				<BooleanProperty
					Name="GenIntellisense"
					DisplayName="Generate IntelliSense"
					PropertyPageName="Code Generation"
					Description="Generate workarounds for IntelliSense bugs in Visual Studio 2005 (8.0)."
					Switch="--generate-intellisense"
					DefaultValue="true"
				/>
				<EnumProperty
					Name="TypeNaming"
					DisplayName="Type Naming"
					PropertyPageName="Code Generation"
					Description="Specify the type naming convention that should be used in the generated code."
					>
					<Values>
						<EnumValue
							Value="0"
							DisplayName="K&amp;R"
						/>
						<EnumValue
							Value="1"
							Switch="--type-naming java"
							DisplayName="Java"
						/>
						<EnumValue
							Value="2"
							Switch="--type-naming ucc"
							DisplayName="Upper Camel Case"
						/>
					</Values>
				</EnumProperty>
				<EnumProperty
					Name="FunctionNaming"
					DisplayName="Function Naming"
					PropertyPageName="Code Generation"
					Description="Specify the function naming convention that should be used in the generated code."
					>
					<Values>
						<EnumValue
							Value="0"
							DisplayName="K&amp;R"
						/>
						<EnumValue
							Value="1"
							Switch="--function-naming java"
							DisplayName="Java"
						/>
						<EnumValue
							Value="2"
							Switch="--function-naming lcc"
							DisplayName="Lower Camel Case"
						/>
					</Values>
				</EnumProperty>
				<StringProperty
					Name="RootElement"
					DisplayName="Root Element"
					PropertyPageName="Code Generation"
					Description="Treat only specified comma-separated list of elements as document roots."
					Switch="--root-element [value]"
					Delimited="true"
					Delimiters=","
				/>
				<StringProperty
					Name="ExportSymbol"
					DisplayName="Export Symbol"
					PropertyPageName="Code Generation"
					Description="Insert the specified symbol in places where DLL export/import control statements (__declspec(dllexport/dllimport)) are necessary."
					Switch="--export-symbol [value]"
				/>
				<StringProperty
					Name="HxxPrologue"
					DisplayName="Header Prologue File"
					PropertyPageName="Code Generation"
					Description="Insert the contents of the file specified at the beginning of the header file."
					Switch="--hxx-prologue-file [value]"
				/>
				<StringProperty
					Name="HxxEpilogue"
					DisplayName="Header Epilogue File"
					PropertyPageName="Code Generation"
					Description="Insert the contents of the file specified at the end of the header file."
					Switch="--hxx-epilogue-file [value]"
				/>
			</Properties>
		</CustomBuildRule>
	</Rules>
</VisualStudioToolFile>