]> git.tdb.fi Git - libs/datafile.git/commit - source/collection.h
Simplify loading collection items
authorMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 13:11:56 +0000 (16:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 27 Sep 2012 13:11:56 +0000 (16:11 +0300)
commit60e8000566e2b1510ccd52697793ab049b62b07c
tree4d64a65d6a4cb11ac686dbe9fe8a423441c7b72c
parent92bcf7a5e69a7c8e6055a77a39f356c293b89445
Simplify loading collection items

The ItemLoader wrapper from DirectoryCollection can be used in the base
Collection::Loader as well.  This removes the need for the kludgy struct
Add and the need for two separate loader functions.  As an added bonus,
the ItemLoader can still be used in DirectoryCollection and future derived
classes as well, further reducing duplication.
source/collection.h
source/directorycollection.h