]> git.tdb.fi Git - libs/datafile.git/blob - source/output.h
Some refactoring of TextParser logic
[libs/datafile.git] / source / output.h
1 #ifndef MSP_DATAFILE_OUTPUT_H_
2 #define MSP_DATAFILE_OUTPUT_H_
3
4 #include <msp/io/base.h>
5
6 namespace Msp {
7 namespace DataFile {
8
9 class Output
10 {
11 private:
12         IO::Base *out;
13         IO::Base *compressed;
14
15 public:
16         Output(IO::Base &);
17         ~Output();
18
19         void set_compressed();
20
21         unsigned put(char);
22         unsigned write(const std::string &);
23 };
24
25 } // namespace DataFile
26 } // namespace Msp
27
28 #endif