* wrap/python/spot.i: Add an ostringstream emulation.
This commit is contained in:
parent
1bad681a4b
commit
4d819969d0
2 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
2003-08-05 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
||||||
|
|
||||||
|
* wrap/python/spot.i: Add an ostringstream emulation.
|
||||||
|
|
||||||
2003-08-04 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
2003-08-04 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
||||||
|
|
||||||
* wrap/python/spot.i: Add an ofstream emulation.
|
* wrap/python/spot.i: Add an ofstream emulation.
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
%{
|
%{
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
#include "ltlast/formula.hh"
|
#include "ltlast/formula.hh"
|
||||||
#include "ltlast/refformula.hh"
|
#include "ltlast/refformula.hh"
|
||||||
|
|
@ -132,6 +133,13 @@ namespace std {
|
||||||
ofstream(const char *fn);
|
ofstream(const char *fn);
|
||||||
~ofstream();
|
~ofstream();
|
||||||
};
|
};
|
||||||
|
class ostringstream : public ostream
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ostringstream();
|
||||||
|
std::string str() const;
|
||||||
|
~ofstream();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue