]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/writer.h
Move the definition of Input's operator bool to the header
[libs/datafile.git] / source / writer.h
index 18fb3141b2c8c83edb526da13ef76c981b0c4c1e..05ab369f439e3d94bf3d94e5a2a6b04364c9b914 100644 (file)
@@ -2,24 +2,26 @@
 #define MSP_DATAFILE_WRITER_H_
 
 #include <map>
+#include <msp/core/noncopyable.h>
 #include <msp/io/base.h>
+#include "mspdatafile_api.h"
 #include "output.h"
 
 namespace Msp {
 namespace DataFile {
 
-class Statement;
+struct Statement;
 class WriterMode;
 
 /**
 Frontend for writing data.
 */
-class Writer
+class MSPDATAFILE_API Writer: private NonCopyable
 {
 private:
        Output out;
-       WriterMode *mode;
-       bool binary;
+       WriterMode *mode = nullptr;
+       bool binary = false;
 
 public:
        Writer(IO::Base &o);