2002-09-11 09:14:57 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2001-12-03 17:52:48 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "math_streamstr.h"
|
2001-12-05 08:04:20 +00:00
|
|
|
#include "math_mathmlstream.h"
|
2001-12-10 14:35:54 +00:00
|
|
|
#include "support/LOstream.h"
|
2002-01-14 13:04:06 +00:00
|
|
|
#include "support/lyxalgo.h"
|
2001-12-03 17:52:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
WriteStream & operator<<(WriteStream & ws, string const & s)
|
|
|
|
{
|
2002-10-16 15:32:34 +00:00
|
|
|
ws << s.c_str();
|
2001-12-03 17:52:48 +00:00
|
|
|
return ws;
|
|
|
|
}
|
2001-12-05 08:04:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
NormalStream & operator<<(NormalStream & ns, string const & s)
|
|
|
|
{
|
|
|
|
ns.os() << s;
|
|
|
|
return ns;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MapleStream & operator<<(MapleStream & ms, string const & s)
|
|
|
|
{
|
|
|
|
ms.os() << s;
|
|
|
|
return ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-07-01 11:17:14 +00:00
|
|
|
MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
|
|
|
|
{
|
|
|
|
ms.os() << s;
|
|
|
|
return ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-12-05 08:04:20 +00:00
|
|
|
MathMLStream & operator<<(MathMLStream & ms, string const & s)
|
|
|
|
{
|
|
|
|
ms.os() << s;
|
|
|
|
return ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
OctaveStream & operator<<(OctaveStream & os, string const & s)
|
|
|
|
{
|
|
|
|
os.os() << s;
|
|
|
|
return os;
|
|
|
|
}
|