-/**
-Base class for data loaders. To enable objects of a certain class to be loaded
-from datafiles, create a public Loader class in it, derived from this class.
-Typically the Loader class contains a reference to the object being loaded. If
-you want to load data members of the object directly, the Loader class must
-have a member function get_object() returning that reference.
-*/
-class Loader
-{
-public:
- /**
- Loads data from a statement. This is normally only used by the Loader class
- itself for loading sub-items, but needs to be public so it can be accessed
- in derived objects.
- */
- void load(const Statement &st);
-
- /**
- Loads statements from a parser.
- */
- void load(Parser &p);
-
- virtual ~Loader();
-protected:
- Loader(): cur_st(0) { }
-