X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fcollectionsource.h;h=398f7942c85c6260d514796beac77146b5cc7d32;hp=61bb11555decbbf85d36500f18ed829073b64f31;hb=9b1656018f783eb4aad2fbdc1de1404691e89bb1;hpb=b1bc25649c1f22abf940a807d934f1e9bb780c28 diff --git a/source/collectionsource.h b/source/collectionsource.h index 61bb115..398f794 100644 --- a/source/collectionsource.h +++ b/source/collectionsource.h @@ -3,6 +3,7 @@ #include #include +#include namespace Msp { namespace DataFile { @@ -31,6 +32,10 @@ public: virtual NameList get_names(const CollectionItemTypeBase &type) const = 0; virtual void load(Collection &, const CollectionItemTypeBase &, const std::string &) const = 0; + + /** Opens a file from the source. The caller is responsible for deleting + the returned object when done with it. */ + virtual IO::Seekable *open(const std::string &) const = 0; }; } // namespace DataFile