30 virtual const char *type()
const = 0;
53 bool write(
const char *filename)
const;
55 bool read(
const char *filename);
58 virtual bool save(drwnXMLNode& xml)
const = 0;
60 virtual bool load(drwnXMLNode& xml) = 0;
80 #define DRWN_TYPE_AND_CLONE_IMPL(C) \
81 virtual const char *type() const { return #C; } \
82 virtual C* clone() const { return new C(*this); }
interface for objects that can serialize and de-serialize themselves
Definition: drwnInterfaces.h:48
interface for an object that returns its own type as a string
Definition: drwnInterfaces.h:25
interface for cloning object (i.e., virtual copy constructor)
Definition: drwnInterfaces.h:36
Provides XML parsing functionality for serializing and deserializing objects and containers of object...
standard Darwin object interface (cloneable and writeable)
Definition: drwnInterfaces.h:72