2003-08-19 13:00:56 +00:00
|
|
|
|
/**
|
2006-09-17 09:14:18 +00:00
|
|
|
|
* \file MathStream.C
|
2003-08-19 13:00:56 +00:00
|
|
|
|
* 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>
|
|
|
|
|
|
2006-09-17 09:14:18 +00:00
|
|
|
|
#include "MathStream.h"
|
|
|
|
|
#include "MathMLStream.h"
|
2003-10-06 09:35:38 +00:00
|
|
|
|
#include "support/std_ostream.h"
|
2001-12-03 17:52:48 +00:00
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
|
using std::string;
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|