]> git.tdb.fi Git - libs/datafile.git/blobdiff - tool/packer.h
Add ability to put raw files in a pack
[libs/datafile.git] / tool / packer.h
index 351b45d3109c59bea04fd790e1825e4ac055a839..913d7d6825bc30fd6ba58cf94c2e463d8efb880b 100644 (file)
@@ -17,6 +17,8 @@ private:
                std::string keyword;
        };
 
+       typedef std::list<Object> ObjectList;
+
        DataTool &tool;
        Msp::IO::File *tmp_file;
        Msp::IO::Buffered *tmp_buf;
@@ -31,6 +33,11 @@ public:
        ~Packer();
 
        void pack_file(const std::string &);
+private:
+       bool detect_raw(Msp::IO::Seekable &);
+       void transfer_datafile(Msp::IO::Base &, const std::string &, Msp::IO::Base &, ObjectList &);
+       void transfer_raw(Msp::IO::Base &, Msp::IO::Base &);
+public:
        void create_pack(const std::string &);
 };