Re: [Boost-users] [Serialization] a newbie question about retrieving objects serialized through base class pointers
Robert Ramey wrote:
If BOOST_CLASS_EXPORT is used, the class name is included as an attribute in the xml file. Otherwise, the class_id variable - another xml attribute is used. This is set/recovered by the "registration" process. I understood from the documentation that BOOST_CLASS_EXPORT works for classes which derive from a virtual base class, which isn't really the case for me. Is it possible to add class names as attributes to xml archives even for classes which aren't serialized through base class pointers? If there is a way, this would really helps me Thanks
Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34 /mn) ; tél : 08 92 68 13 50 (0,34/mn)
This would require customization (probably via derivation) of the
xml_archive included with the package.
Robert Ramey
"t.sammoud"
If BOOST_CLASS_EXPORT is used, the class name is included as an attribute in the xml file. Otherwise, the class_id variable - another xml attribute is used. This is set/recovered by the "registration" process. I understood from the documentation that BOOST_CLASS_EXPORT works for classes which derive from a virtual base class, which isn't really the case for me. Is it possible to add class names as attributes to xml archives even for classes which aren't serialized through base class pointers? If there is a way, this would really helps me Thanks
Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34 /mn) ; tél : 08 92 68 13 50 (0,34/mn) _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Robert Ramey
-
t.sammoud