]> git.tdb.fi Git - libs/datafile.git/blob - source/writermode.h
Some more code reformatting
[libs/datafile.git] / source / writermode.h
1 /* $Id$
2
3 This file is part of libmspdatafile
4 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_DATAFILE_WRITERMODE_H_
9 #define MSP_DATAFILE_WRITERMODE_H_
10
11 #include <msp/io/base.h>
12
13 namespace Msp {
14 namespace DataFile {
15
16 class Statement;
17
18 class WriterMode
19 {
20 protected:
21         IO::Base &out;
22
23         WriterMode(IO::Base &o): out(o) { }
24 public:
25         virtual ~WriterMode() { }
26
27         virtual void write(const Statement &st) = 0;
28 };
29
30 } // namespace DataFile
31 } // namespace Msp
32
33 #endif