X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tool%2Fpacker.h;fp=tool%2Fpacker.h;h=351b45d3109c59bea04fd790e1825e4ac055a839;hb=57d8b8c6f07808efdd1b9647d12447c177ce1e7d;hp=0000000000000000000000000000000000000000;hpb=348a6d9ca1a9b3838ff8c6da5050f61b2c74d010;p=libs%2Fdatafile.git diff --git a/tool/packer.h b/tool/packer.h new file mode 100644 index 0000000..351b45d --- /dev/null +++ b/tool/packer.h @@ -0,0 +1,37 @@ +#ifndef PACKER_H_ +#define PACKER_H_ + +#include +#include +#include +#include + +class DataTool; + +class Packer +{ +private: + struct Object + { + std::string name; + std::string keyword; + }; + + DataTool &tool; + Msp::IO::File *tmp_file; + Msp::IO::Buffered *tmp_buf; + std::list directory; + unsigned dir_alloc; + +public: + Packer(DataTool &); +private: + static Msp::IO::File *tempfile(); +public: + ~Packer(); + + void pack_file(const std::string &); + void create_pack(const std::string &); +}; + +#endif