]> git.tdb.fi Git - libs/datafile.git/blob - source/output.cpp
Add an abstraction layer for output
[libs/datafile.git] / source / output.cpp
1 #include "output.h"
2
3 using namespace std;
4
5 namespace Msp {
6 namespace DataFile {
7
8 Output::Output(IO::Base &o):
9         out(&o)
10 { }
11
12 unsigned Output::put(char c)
13 {
14         return out->put(c);
15 }
16
17 unsigned Output::write(const string &s)
18 {
19         return out->write(s);
20 }
21
22 } // namespace DataFile
23 } // namespace Msp