src/ISaveObject.h

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * ISaveObject Header
00003  * Note: This is a base class for anything that will need to be saved in the save games
00004  */
00005 
00006 #if !defined ( _ISAVEOBJECT_H_ )
00007 #define _ISAVEOBJECT_H_
00008 
00009 #include <string>
00010 
00011 class TiXmlElement;
00012 
00013 class ISaveObject {
00014  public:
00015    ISaveObject(std::string XMLName);
00016 
00017    virtual ~ISaveObject() { };
00018 
00019   // Saves this object to XML, pass parent element
00020   virtual void Save(TiXmlElement *parent) = 0;
00021 
00022   // Loads from XML, pass the element of this object
00023   virtual void Load(TiXmlElement *parent) = 0;
00024 
00025  protected:
00026   std::string m_XMLName;
00027 };
00028 
00029 #endif

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7