]> git.tdb.fi Git - libs/datafile.git/blob - tool/tool.h
Move most of Collection::get implementation to collection.cpp
[libs/datafile.git] / tool / tool.h
1 #ifndef TOOL_H_
2 #define TOOL_H_
3
4 #include <string>
5 #include <msp/core/application.h>
6 #include <msp/datafile/writer.h>
7
8 class DataTool: public Msp::RegisteredApplication<DataTool>
9 {
10 private:
11         std::vector<std::string> in_fns;
12         std::string out_fn;
13         bool binary;
14         bool compile;
15         unsigned float_size;
16         bool compress;
17         bool pack;
18         bool debug;
19
20 public:
21         DataTool(int argc, char **argv);
22
23         virtual int main();
24 private:
25         void do_transfer();
26         void do_compile();
27         void do_pack();
28         Msp::IO::Base *open_output(const std::string &);
29         Msp::IO::Base *open_input(const std::string &);
30 public:
31         Msp::DataFile::Writer *create_writer(Msp::IO::Base &);
32 };
33
34 #endif