]> git.tdb.fi Git - libs/datafile.git/blob - source/textwriter.h
Use custom encoding for floats in binary format
[libs/datafile.git] / source / textwriter.h
1 #ifndef MSP_DATAFILE_TEXTWRITER_H_
2 #define MSP_DATAFILE_TEXTWRITER_H_
3
4 #include "writermode.h"
5
6 namespace Msp {
7 namespace DataFile {
8
9 class TextWriter: public WriterMode
10 {
11 private:
12         std::string float_format;
13
14 public:
15         TextWriter(IO::Base &o);
16
17         virtual void set_float_precision(unsigned);
18         virtual void write(const Statement &st);
19 private:
20         void write_(const Statement &st, unsigned);
21 };
22
23 } // namespace DataFile
24 } // namespace Msp
25
26 #endif