From 474046c375d24bfdb51a20b0bfd3ac4ac928ef3e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 29 Aug 2010 15:24:56 +0200 Subject: Implement generation of assignment operators Also add the --suppress-assignment option. We need to generate these operators into the .cxx file instead of relying on the implicit inline ones because in the file-per-type mode types of members are only forward- declared in the header. Also, we don't want to assign the DOMDocument member used to store the wildcard content. --- documentation/xsd.1 | 5 +++++ documentation/xsd.xhtml | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'documentation') diff --git a/documentation/xsd.1 b/documentation/xsd.1 index 8b97b14..ecde0ca 100644 --- a/documentation/xsd.1 +++ b/documentation/xsd.1 @@ -869,6 +869,11 @@ not initialized and accessing them results in undefined behavior. Generate constructors that expect an instance of a base type followed by all required members. +.IP "\fB\--suppress-assignment\fR" +Suppress the generation of copy assignment operators for complex types. +If this option is specified, the copy assignment operators for such +types are declared private and left unimplemented. + .IP "\fB\--generate-detach\fR" Generate detach functions for required elements and attributes (detach functions for optional and sequence cardinalities are provided by the diff --git a/documentation/xsd.xhtml b/documentation/xsd.xhtml index 4acf822..f5fb0b7 100644 --- a/documentation/xsd.xhtml +++ b/documentation/xsd.xhtml @@ -763,6 +763,11 @@
Generate constructors that expect an instance of a base type followed by all required members.
+
--suppress-assignment
+
Suppress the generation of copy assignment operators for complex + types. If this option is specified, the copy assignment operators + for such types are declared private and left unimplemented.
+
--generate-detach
Generate detach functions for required elements and attributes (detach functions for optional and sequence cardinalities are -- cgit v1.1