[xsd-users] Inheritance : Ways to get the real type

Boris Kolpackov boris at codesynthesis.com
Fri Nov 25 00:47:15 EST 2011


Hi Joël,

Klaim - Joël Lamotte <mjklaim at gmail.com> writes:

> Assuming I'm using correctly the xsd inheritance mechanism and get base and
> child classes in C++ using xsd/tree (not xsde),
> in C++ (with objects genreated via xsd/tree) the only ways to know what is
> the real type of an object we got are:
> 
>  1. use dynamic_cast
>  2. use typeid
> 
> Correct?

Yes, that's correct.


> No type name information provided by xsd/tree generated types, right?

Right. What kind of type information are you looking for?

Boris



More information about the xsd-users mailing list