[xsd-users] Visitors (again?)
Boris Kolpackov
boris at codesynthesis.com
Sat Sep 13 17:58:01 EDT 2014
Oliver, Timothy,
Oliver Schneider <xsd-users at oli-obk.de> writes:
> Then add a void accept(Visitor& v) { v.visit(*this); } function.
>
> [...]
Just wanted to add a note in case others are reading this: this
approach works well if you have a relatively small number of
classes that you want to visit. For a large number of classes
this can become quite a job. One idea that I am considering
is to add support for code generation plugins to XSD. With
such a plugin one would be able to add (i.e., generate) such
an accept() function quite easily in every generated class.
Boris
More information about the xsd-users
mailing list