+bool TestSource::is_loadable(const DataFile::CollectionItemTypeBase &, const string &name) const
+{
+ return name=="f";
+}
+
+DataFile::CollectionSource::NameList TestSource::get_names(const DataFile::CollectionItemTypeBase &) const
+{
+ NameList names;
+ names.push_back("f");
+ return names;
+}
+
+void TestSource::load(DataFile::Collection &coll, const DataFile::CollectionItemTypeBase &, const string &name) const
+{
+ if(name=="f")
+ coll.add("f", new Foo);
+}
+
+