22 #ifndef TITANIC_SAVEABLE_OBJECT_H 23 #define TITANIC_SAVEABLE_OBJECT_H 25 #include "common/scummsys.h" 26 #include "common/array.h" 27 #include "common/hash-str.h" 28 #include "common/list.h" 29 #include "titanic/support/simple_file.h" 33 class CSaveableObject;
37 const char *_className;
41 _className(className), _parent(parent) {}
55 static ClassDef *_type; \ 56 ClassDef *getType() const override { return _type; } 63 static ClassDefList *_classDefs;
64 static ClassListMap *_classList;
69 static void initClassList();
74 static void freeClassList();
82 virtual
ClassDef *getType()
const {
return _type; }
86 bool isInstanceOf(
const ClassDef *classDef)
const;
91 virtual void save(
SimpleFile *file,
int indent);
102 virtual void saveHeader(
SimpleFile *file,
int indent);
108 virtual void saveFooter(
SimpleFile *file,
int indent);
Definition: simple_file.h:49
Definition: saveable_object.h:35
Definition: saveable_object.h:47
Definition: saveable_object.h:58