]> git.tdb.fi Git - libs/datafile.git/blob - tool/tool.h
2cfcf1573514343da799ad9c1407237c2cf9b30e
[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
7 class DataTool: public Msp::RegisteredApplication<DataTool>
8 {
9 private:
10         std::vector<std::string> in_fns;
11         std::string out_fn;
12         bool binary;
13         bool compile;
14         unsigned float_size;
15         bool compress;
16
17 public:
18         DataTool(int argc, char **argv);
19
20         virtual int main();
21 private:
22         void do_transfer();
23         void do_compile();
24         Msp::IO::Base *open_output(const std::string &);
25         Msp::IO::Base *open_input(const std::string &);
26         void set_writer_parameters(Msp::DataFile::Writer &);
27 };
28
29 #endif