]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/packsource.h
Use const sources in Collection
[libs/datafile.git] / source / packsource.h
index 440b45118bd66fc2af1c1d0c7b2f0a195a237fd9..6912a40047edfb1110ef4d31ce867bb5bdceee4f 100644 (file)
@@ -81,7 +81,6 @@ private:
                unsigned length;
                bool collection;
                std::list<Object> 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 &);