From 3bf42ed8ccc93a3ff5fdabb9153b887018075acc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Jan 2010 11:44:48 +0200 Subject: Add support for selective polymorphic in C++/Tree New options: --polymorphic-type, --polymorphic-type-all. --- documentation/xsd.xhtml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'documentation/xsd.xhtml') diff --git a/documentation/xsd.xhtml b/documentation/xsd.xhtml index 1f1c5f8..46e8c1a 100644 --- a/documentation/xsd.xhtml +++ b/documentation/xsd.xhtml @@ -657,7 +657,25 @@
--generate-polymorphic
Generate polymorphism-aware code. Specify this option if you use - substitution groups or xsi:type.
+ substitution groups or xsi:type. Use the + --polymorphic-type or + --polymorphic-type-all option to specify + which type hierarchies are polymorphic. + +
--polymorphic-type type
+
Indicate that type is a root of a polymorphic + type hierarchy. The compiler can often automatically determine + which types are polymorphic based on the substitution group + declarations. However, you may need to use this option if you are + not using substitution groups or if substitution groups are defined + in another schema. You need to specify this option when compiling + every schema file that references type. The + type argument is an XML Schema type name that + can be optionally qualified with a namespace in the + namespace#name form.
+ +
--polymorphic-type-all
+
Indicate that all types should be treated as polymorphic.
--generate-serialization
Generate serialization functions. Serialization functions -- cgit v1.1