};
+/**
+Convenience class for loading derived objects. Inherits from the base class
+loader and shadows its members with ones for the derived type.
+*/
+template<typename O, typename B>
+class DerivedObjectLoader: public B::Loader
+{
+public:
+ typedef O Object;
+
+protected:
+ O &obj;
+
+ DerivedObjectLoader(O &o): B::Loader(o), obj(o) { }
+
+public:
+ O &get_object() const { return obj; }
+};
+
+
/**
Provides functionality for loading objects with a Collection. Deriving from
this allows loading pointers to objects in the collection automatically.