2003-08-19 13:00:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file math_streamstr.C
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
2002-09-11 09:14:57 +00:00
|
|
|
|
|
2001-12-03 17:52:48 +00:00
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2003-09-05 16:18:57 +00:00
|
|
|
|
#include "math_streamstr.h"
|
2001-12-05 08:04:20 +00:00
|
|
|
|
#include "math_mathmlstream.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-10-28 17:15:19 +00:00
|
|
|
|
MaximaStream & operator<<(MaximaStream & 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;
|
|
|
|
|
}
|