]> git.lyx.org Git - lyx.git/blob - src/mathed/math_streamstr.C
Small fixes to allow building with STLport
[lyx.git] / src / mathed / math_streamstr.C
1 /**
2  * \file math_streamstr.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "math_streamstr.h"
14 #include "math_mathmlstream.h"
15 #include "support/std_ostream.h"
16
17 WriteStream & operator<<(WriteStream & ws, string const & s)
18 {
19         ws << s.c_str();
20         return ws;
21 }
22
23
24 NormalStream & operator<<(NormalStream & ns, string const & s)
25 {
26         ns.os() << s;
27         return ns;
28 }
29
30
31 MapleStream & operator<<(MapleStream & ms, string const & s)
32 {
33         ms.os() << s;
34         return ms;
35 }
36
37
38 MaximaStream & operator<<(MaximaStream & ms, string const & s)
39 {
40         ms.os() << s;
41         return ms;
42 }
43
44
45 MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
46 {
47         ms.os() << s;
48         return ms;
49 }
50
51
52 MathMLStream & operator<<(MathMLStream & ms, string const & s)
53 {
54         ms.os() << s;
55         return ms;
56 }
57
58
59 OctaveStream & operator<<(OctaveStream & os, string const & s)
60 {
61         os.os() << s;
62         return os;
63 }