]> git.tdb.fi Git - libs/datafile.git/blobdiff - tool/tool.h
Create writers dynamically and delete them before deleting output
[libs/datafile.git] / tool / tool.h
index 2cfcf1573514343da799ad9c1407237c2cf9b30e..0c5a77a85bed010c51807b5862509795e3ae4bca 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <string>
 #include <msp/core/application.h>
+#include <msp/datafile/writer.h>
 
 class DataTool: public Msp::RegisteredApplication<DataTool>
 {
@@ -23,7 +24,8 @@ private:
        void do_compile();
        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