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