]> git.tdb.fi Git - libs/datafile.git/blobdiff - tool/packer.h
Cosmetic changes
[libs/datafile.git] / tool / packer.h
index 913d7d6825bc30fd6ba58cf94c2e463d8efb880b..313ee033216969b9d8931435098848e26d6c9b54 100644 (file)
@@ -20,23 +20,24 @@ private:
        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 &);
        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 &);
+       void transfer_raw_data(Msp::IO::Base &, const std::string &, Msp::IO::Base &);
+       void transfer_unknown(Msp::IO::Base &, Msp::IO::Base &);
 public:
        void create_pack(const std::string &);
 };