D
danny van elsen
hello all,
in my application, I want to save the state of a number of classes to disk: what would be the best way to do this?
right now, I'm hard coding the fields of the classes, but of course after
every change to the classes, I also have to adapt the 'save' method. Is there a better way, perhaps using some kind of reflection?
I've searched boost.org for reflection, but there don't seem to be ready made classes?
thanks for any answer,
Danny.
in my application, I want to save the state of a number of classes to disk: what would be the best way to do this?
right now, I'm hard coding the fields of the classes, but of course after
every change to the classes, I also have to adapt the 'save' method. Is there a better way, perhaps using some kind of reflection?
I've searched boost.org for reflection, but there don't seem to be ready made classes?
thanks for any answer,
Danny.