]> git.tdb.fi Git - libs/datafile.git/blobdiff - tool/packer.h
Shuffle some names around in the data tool
[libs/datafile.git] / tool / packer.h
index 351b45d3109c59bea04fd790e1825e4ac055a839..151947fbba945bd683017cf1389ff5e467278c3d 100644 (file)
@@ -17,20 +17,26 @@ private:
                std::string keyword;
        };
 
+       typedef std::list<Object> ObjectList;
+
        DataTool &tool;
-       Msp::IO::File *tmp_file;
-       Msp::IO::Buffered *tmp_buf;
+       Msp::IO::BufferedFile *tmp_file;
        std::list<Msp::DataFile::Statement> directory;
        unsigned dir_alloc;
 
 public:
        Packer(DataTool &);
 private:
-       static Msp::IO::File *tempfile();
+       static Msp::IO::BufferedFile *tempfile();
 public:
        ~Packer();
 
        void pack_file(const std::string &);
+private:
+       bool detect_data(Msp::IO::Seekable &);
+       void transfer_datafile(Msp::IO::Base &, const std::string &, Msp::IO::Base &, ObjectList &);
+       void transfer_unknown(Msp::IO::Base &, Msp::IO::Base &);
+public:
        void create_pack(const std::string &);
 };