]> git.tdb.fi Git - libs/datafile.git/blobdiff - tool/tool.h
Add an unpack option to the data tool
[libs/datafile.git] / tool / tool.h
index 2cfcf1573514343da799ad9c1407237c2cf9b30e..88f849bbea956667902291d36ce02003d2829e0e 100644 (file)
@@ -3,16 +3,20 @@
 
 #include <string>
 #include <msp/core/application.h>
+#include <msp/datafile/writer.h>
 
 class DataTool: public Msp::RegisteredApplication<DataTool>
 {
 private:
-       std::vector<std::string> in_fns;
+       std::list<std::string> 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);
@@ -21,9 +25,12 @@ public:
 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 &);
-       void set_writer_parameters(Msp::DataFile::Writer &);
+public:
+       Msp::DataFile::Writer *create_writer(Msp::IO::Base &);
 };
 
 #endif