]> git.lyx.org Git - lyx.git/blob - src/mathed/math_mathmlstream.h
change output to uses streams instead of strings
[lyx.git] / src / mathed / math_mathmlstream.h
1 #ifndef MATH_MATH_MLSTREAM
2 #define MATH_MATH_MLSTREAM
3
4 #include <iosfwd>
5
6
7 struct MathMLStream {
8         ///
9         explicit MathMLStream(std::ostream & os) : os_(os) {}
10         ///
11         std::ostream & os_;
12         ///
13         MathMLStream & operator<<(MathInset const *);
14         ///
15         MathMLStream & operator<<(MathArray const &);
16         ///
17         MathMLStream & operator<<(char const *);
18         ///
19         MathMLStream & operator<<(char);
20 };
21
22
23 struct MapleStream {
24         ///
25         explicit MapleStream(std::ostream & os) : os_(os) {}
26         ///
27         std::ostream & os_;
28         ///
29         MapleStream & operator<<(MathInset const *);
30         ///
31         MapleStream & operator<<(MathArray const &);
32         ///
33         MapleStream & operator<<(char const *);
34         ///
35         MapleStream & operator<<(char);
36 };
37
38
39 struct OctaveStream {
40         ///
41         explicit OctaveStream(std::ostream & os) : os_(os) {}
42         ///
43         std::ostream & os_;
44         ///
45         OctaveStream & operator<<(MathInset const *);
46         ///
47         OctaveStream & operator<<(MathArray const &);
48         ///
49         OctaveStream & operator<<(char const *);
50         ///
51         OctaveStream & operator<<(char);
52 };
53
54 #endif