Johan wrote:
Hi,
I am looking for an xml serializer for c++ objects. Something like xstream
in java. Is there something in c++ too.
Johan
In general, no. C++ objects do not have built-in metadata. You would have
to design your class specifically for that purpose. Interestingly, I just
happen to be reading something fairly related:
http://www.cuj.com/documents/s=8943/cujexp0312vinoski/
Bear in mind that a C++ class type instance may have absolutely no internal
representation of the class from which it is derived. The typical way
introspection is accomplished in C++ is through the use of the CPP, either
using #MACROs directly, or more sophisticated code generators.
http://doc.trolltech.com/4.0/object.html
--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell