X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwriter.h;fp=source%2Fwriter.h;h=756e19a22c41668cea43fb5387944b90b84a4721;hb=27630d44298cb67e075c166f4421288cc8ca117e;hp=0000000000000000000000000000000000000000;hpb=c4930d8d15a5a248ca921e0ed3f9bca8aa18b322;p=libs%2Fdatafile.git diff --git a/source/writer.h b/source/writer.h new file mode 100644 index 0000000..756e19a --- /dev/null +++ b/source/writer.h @@ -0,0 +1,37 @@ +/* $Id$ + +This file is part of libmspdatafile +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_DATAFILE_WRITER_H_ +#define MSP_DATAFILE_WRITER_H_ + +#include +#include +#include "binarydict.h" + +namespace Msp { +namespace DataFile { + +class Statement; +class WriterMode; + +class Writer +{ +private: + std::ostream &out; + WriterMode *mode; + bool binary; + +public: + Writer(std::ostream &); + void write(const Statement &); + void set_binary(bool); +}; + +} // namespace DataFile +} // namespace Msp + +#endif