]> git.tdb.fi Git - libs/datafile.git/blob - tool/tool.h
c2a1d7bb98d4eec3d1637c9b084940518f3707b1
[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 debug;
18
19 public:
20         DataTool(int argc, char **argv);
21
22         virtual int main();
23 private:
24         void do_transfer();
25         void do_compile();
26         Msp::IO::Base *open_output(const std::string &);
27         Msp::IO::Base *open_input(const std::string &);
28 public:
29         Msp::DataFile::Writer *create_writer(Msp::IO::Base &);
30 };
31
32 #endif