struct FileInfo
{
std::string name;
- unsigned size;
+ IO::SeekOffset size;
};
private:
private:
std::string filename;
IO::Seekable *io;
- unsigned base_offset;
+ IO::SeekOffset base_offset;
std::list<File> files;
public:
const std::string &get_filename() const { return filename; }
IO::Seekable *get_io() const { return io; }
- unsigned get_base_offset() const { return base_offset; }
+ IO::SeekOffset get_base_offset() const { return base_offset; }
void collect_files(FileMap &, const std::string &) const;
};
private:
const Pack &pack;
std::string filename;
- unsigned offset;
- unsigned length;
+ IO::SeekOffset offset;
+ IO::SeekOffset length;
bool collection;
std::list<Object> objects;
- bool loaded;
public:
File(const Pack &, const std::string &);
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;
};
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 &);