]> git.lyx.org Git - lyx.git/blob - src/mathed/math_streamstr.C
float2string #4 (Spacing)
[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 using std::string;
18
19
20 WriteStream & operator<<(WriteStream & ws, string const & s)
21 {
22         ws << s.c_str();
23         return ws;
24 }
25
26
27 NormalStream & operator<<(NormalStream & ns, string const & s)
28 {
29         ns.os() << s;
30         return ns;
31 }
32
33
34 MapleStream & operator<<(MapleStream & ms, string const & s)
35 {
36         ms.os() << s;
37         return ms;
38 }
39
40
41 MaximaStream & operator<<(MaximaStream & ms, string const & s)
42 {
43         ms.os() << s;
44         return ms;
45 }
46
47
48 MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
49 {
50         ms.os() << s;
51         return ms;
52 }
53
54
55 MathMLStream & operator<<(MathMLStream & ms, string const & s)
56 {
57         ms.os() << s;
58         return ms;
59 }
60
61
62 OctaveStream & operator<<(OctaveStream & os, string const & s)
63 {
64         os.os() << s;
65         return os;
66 }