]> git.tdb.fi Git - libs/datafile.git/blobdiff - tool/tool.h
Cosmetic changes
[libs/datafile.git] / tool / tool.h
index 0c5a77a85bed010c51807b5862509795e3ae4bca..354456ccab4a51276a3176c1a99be92cef0f00f2 100644 (file)
@@ -8,12 +8,18 @@
 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 builtin;
+       std::string builtin_ns;
+       std::string builtin_module;
+       bool debug;
 
 public:
        DataTool(int argc, char **argv);
@@ -22,9 +28,13 @@ public:
 private:
        void do_transfer();
        void do_compile();
+       void do_pack();
+       void do_unpack();
+       void do_generate_builtin();
        Msp::IO::Base *open_output(const std::string &);
        Msp::IO::Base *open_input(const std::string &);
 public:
+       bool is_compressed() const { return compress; }
        Msp::DataFile::Writer *create_writer(Msp::IO::Base &);
 };