(Pseudo code, ofc)
MyClass* Test;ClassType ct=GetClassType(Test);Write to file (&ct);//...//LaterClassType ct;ReadFromFile(&ct); //Read it from the fileMyClass* Test = new ct;
For now I have rolled my own solution, but I did this for my bigger project. And I don't want to do this for my little mario-clone, too.