Finally I managed to got enough of the serialization working to store and load my first object - a
Tuple3 derived class. Now I “just” need to support generic handles. Here you can see a quick example - I create a
Vector3f which stores/reads its three member variables in the archive. After that, I reset the archive by closing it and opening it for reading. Then I serialize the contents of the archive back into a fresh new vector.
Vector3f testv(1,2,3), testr; MemoryArchive b; b.setMode (IArchive::WRITE); b & testv; // from testv into b b.setMode (IArchive::CLOSED); b.setMode (IArchive::READ); b & testr; // from b to testr