[xsd-users] how to combine --generate-polymorphic with a
dynamically loaded plugin?
Erik Sjölund
erik.sjolund at gmail.com
Thu Dec 30 09:22:04 EST 2010
Hi,
Is it possible to combine --generate-polymorphic with dynamically
loaded plugins?
For instance a dynamically loaded plugin could provide a new type of "person" in
xsd-3.3.0-i686-linux-gnu/examples/cxx/tree/polymorphism/supermen.xsd
If I understand correctly it is advisable not to have any global
static objects in a dynamically loaded library, but after running
make in the polymorphism example and looking at the generated file supermen.cxx
erik at linux: examples/cxx/tree/polymorphism$ grep -m 1 -3
type_serializer_initializer supermen.cxx
}
static
const ::xsd::cxx::tree::type_serializer_initializer< 0, char, person >
_xsd_person_type_serializer_init (
"person",
"");
there seems to be such a global object. Is this an obstacle for
creating a dynamically loaded plugin?
cheers,
Erik Sjölund
More information about the xsd-users
mailing list