X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fpacksource.h;h=35ec8b87a72eb54572057c04328a329e3d364dad;hp=7d616614cff490690d73699f4a5b4f6a76a545f1;hb=0ea5e96f078d85fe4229784e6499d19c67271219;hpb=010737b64c8d4e7fcf0fe953ed15769eeac4178f diff --git a/source/packsource.h b/source/packsource.h index 7d61661..35ec8b8 100644 --- a/source/packsource.h +++ b/source/packsource.h @@ -25,7 +25,7 @@ public: struct FileInfo { std::string name; - unsigned size; + IO::SeekOffset size; }; private: @@ -49,7 +49,7 @@ private: private: std::string filename; IO::Seekable *io; - unsigned base_offset; + IO::SeekOffset base_offset; std::list files; public: @@ -57,7 +57,7 @@ private: 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; }; @@ -77,11 +77,10 @@ private: private: const Pack &pack; std::string filename; - unsigned offset; - unsigned length; + IO::SeekOffset offset; + IO::SeekOffset 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; };