+template<typename T>
+void load(T &obj, const std::string &fn)
+{
+ std::ifstream in(fn.c_str());
+ if(!in)
+ throw Exception("Couldn't open "+fn);
+
+ Parser parser(in, fn);
+ typename T::Loader loader(obj);
+ loader.load(parser);
+}
+
+} // namespace DataFile