X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwritermode.h;fp=source%2Fwritermode.h;h=e5853ceafc88796f2446a1318af9567d149b34d8;hb=27630d44298cb67e075c166f4421288cc8ca117e;hp=0000000000000000000000000000000000000000;hpb=c4930d8d15a5a248ca921e0ed3f9bca8aa18b322;p=libs%2Fdatafile.git diff --git a/source/writermode.h b/source/writermode.h new file mode 100644 index 0000000..e5853ce --- /dev/null +++ b/source/writermode.h @@ -0,0 +1,33 @@ +/* $Id$ + +This file is part of libmspdatafile +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_DATAFILE_WRITERMODE_H_ +#define MSP_DATAFILE_WRITERMODE_H_ + +#include + +namespace Msp { +namespace DataFile { + +class Statement; + +class WriterMode +{ +protected: + std::ostream &out; + + WriterMode(std::ostream &o): out(o) { } +public: + virtual ~WriterMode() { } + + virtual void write(const Statement &st) =0; +}; + +} // namespace DataFile +} // namespace Msp + +#endif