- template<typename S>
- void add(const std::string &k, typename S::ObjectType &(L::*func)())
- { actions.insert(typename ActionMap::value_type(k, new SubLoader0<L, S>(func))); }
+ template<typename L, typename A0, typename A1, typename A2, typename A3, typename A4>
+ void add(const std::string &k, void (L::*func)(A0, A1, A2, A3, A4))
+ { add(k, new LoaderFunc5<L, A0, A1, A2, A3, A4>(func)); }
+
+ /** Adds a keyword that is loaded into a member of the loaded object. */
+ template<typename L, typename T0>
+ void add(const std::string &k, T0 L::*p0)
+ { add(k, new LoadValue1<L, T0>(p0)); }
+
+ template<typename L, typename T0, typename T1>
+ void add(const std::string &k, T0 L::*p0, T1 L::*p1)
+ { add(k, new LoadValue2<L, T0, T1>(p0, p1)); }