[xsd-users] feature request: generating files such as
people-custom.cxx
Boris Kolpackov
boris at codesynthesis.com
Mon Feb 20 10:38:05 EST 2012
Hi Erik,
Erik Sjölund <erik.sjolund at gmail.com> writes:
> It would be nice if Codesynthesis XSD would be able to generate out
> files such as people-custom-fwd.hxx, people-custom.cxx, people-custom.hxx
> seen in the directory
>
> examples/cxx/tree/custom/taxonomy
>
> Of course XSD would then just create customized classes doing nothing.
> The programmer then manually edits these generated files and enhance
> them with more functionality.
>
> I think adding this functionality to Codesynthesis XSD would save time
> to the programmer when writing his/her customized classes.
Thanks for the suggestion. While I agree such a feature could be useful,
it is not trivial to implement (generating a separate set of files with
classes and empty functions, all the command line options, documentation,
tests, etc, etc.). At the same time I don't think a lot of people will
benefit from this feature since, in my experience, customizing a large
number of types like this is quite rare. Most people will customize a few
types or if they need to apply the same customization to a large number
of types, they will use the template wrapper approach.
So while I've added this feature to the TODO list, its priority will be
quite low.
Boris
More information about the xsd-users
mailing list