Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Serialization of derived classes

$
0
0

Hi,

I'm trying to save and load the state of the application, using a simple XML file using ofxXmlSerializer.

Everything works fine when using non-derived classes, but when introducing polymorphism I can't deserialize anymore, as I don't know a priori the derived class that should be constructed.

Do you know of any solution? (using ofBaseSerializable if possible..)

Thanks


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>