serialize c++ objects

J

Johan

Hi,

I am looking for an xml serializer for c++ objects. Something like xstream
in java. Is there something in c++ too.

Johan
 
S

Steven T. Hatton

Johan said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top