TR: [xsd-users] Problem with substition groups
Boris Kolpackov
boris at codesynthesis.com
Mon Dec 11 10:43:07 EST 2017
FLACHET Nicolas <Nicolas.FLACHET at cstb.fr> writes:
> core::AbstractCityObjectType::_GenericApplicationPropertyOfCityObject_sequence gapSequence;
> ade::poly_Truitost aTruitos(10);
> gapSequence.push_back(aTruitos);
>
> And to read it back :
> for (int i = 0; i < b->_ gapSequence ().size(); ++i)
> {
> ade::poly_Truitost *test = dynamic_cast< ade::poly_Truitost *>(& gapSequence .at(i) );
> }
This should work. Try to step through push_back() code in the
debugger. There it should use _clone() to polymorphically copy
aTruitos into the sequence.
Boris
More information about the xsd-users
mailing list