X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tool%2Ftool.h;h=88f849bbea956667902291d36ce02003d2829e0e;hb=1a3b30ea35fbc19e56bbd35e4ee1811d8d5e02a4;hp=ab399ad85a43ff58662b93b1cf7bd42b838988e5;hpb=52e6bd3e02522f68166c70f83d2ef3d7cf0c15ff;p=libs%2Fdatafile.git diff --git a/tool/tool.h b/tool/tool.h index ab399ad..88f849b 100644 --- a/tool/tool.h +++ b/tool/tool.h @@ -1,29 +1,36 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef TOOL_H_ #define TOOL_H_ #include #include +#include -class DataTool: public Msp::Application +class DataTool: public Msp::RegisteredApplication { private: - std::string in_fn; + std::list in_fns; std::string out_fn; bool binary; bool compile; + unsigned float_size; + bool compress; + bool pack; + bool unpack; + bool debug; public: DataTool(int argc, char **argv); - int main(); - static Application::RegApp reg; + virtual int main(); +private: + void do_transfer(); + void do_compile(); + void do_pack(); + void do_unpack(); + Msp::IO::Base *open_output(const std::string &); + Msp::IO::Base *open_input(const std::string &); +public: + Msp::DataFile::Writer *create_writer(Msp::IO::Base &); }; #endif