Original Post
Hey. I'm currently trying to replace all the IO between my game and text files with IO between the game and XML files. Just wondering what the best way to read objects from XML files is... Should I make non-member friend functions in each object that can be loaded from an XML file? Or should I make a member function called Read or something that is a virtual function carried down from a XML_Readable abstract class? Is it also possible to somehow use operator>> and derive a class from std::istream for this? Or would it not work? Cheers.