X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpacksource.h;h=6912a40047edfb1110ef4d31ce867bb5bdceee4f;hb=5e677b2b3eeb2b3c41216a329f7b1363aade0aed;hp=440b45118bd66fc2af1c1d0c7b2f0a195a237fd9;hpb=461967af6834fb0fccdd39a8d76192d411223148;p=libs%2Fdatafile.git diff --git a/source/packsource.h b/source/packsource.h index 440b451..6912a40 100644 --- a/source/packsource.h +++ b/source/packsource.h @@ -81,7 +81,6 @@ private: unsigned length; bool collection; std::list objects; - bool loaded; public: File(const Pack &, const std::string &); @@ -92,9 +91,6 @@ private: std::string get_full_name() const; bool is_collection() const { return collection; } - void set_loaded(); - bool is_loaded() const { return loaded; } - void collect_objects(ObjectMap &) const; }; @@ -130,6 +126,10 @@ public: PackSource. */ void add_pack_io(IO::Seekable &, const std::string & = std::string()); + /** Adds a pack from an I/O object with a regex to filter logical files. + Multiple filters for the same I/O object can be added with repeated calls. */ + void add_pack_io(IO::Seekable &, const std::string &, const std::string &); + private: void add_pack(IO::Seekable *, const std::string &, const std::string &);