]> git.tdb.fi Git - libs/datafile.git/blob - source/writermode.h
Implement proper copy semantics
[libs/datafile.git] / source / writermode.h
1 #ifndef MSP_DATAFILE_WRITERMODE_H_
2 #define MSP_DATAFILE_WRITERMODE_H_
3
4 #include <msp/core/noncopyable.h>
5
6 namespace Msp {
7 namespace DataFile {
8
9 class Output;
10 class Statement;
11
12 class WriterMode: private NonCopyable
13 {
14 protected:
15         Output &out;
16
17         WriterMode(Output &o): out(o) { }
18 public:
19         virtual ~WriterMode() { }
20
21         virtual void set_float_precision(unsigned) = 0;
22         virtual void write(const Statement &st) = 0;
23 };
24
25 } // namespace DataFile
26 } // namespace Msp
27
28 #endif