Cache dot sources in the CGI script.

* wrap/python/ajax/spot.in (render_dot, render_dot_maybe)
(render_automaton, render_formula): Cache the dot source, so that
we do not have to regenerate two pictures from the same contents.
* wrap/python/spot.i: Typo in the ostringstream declaration.
This commit is contained in:
Alexandre Duret-Lutz 2011-06-08 14:29:38 +02:00
parent 0d2ac81a8c
commit 155ba42c90
3 changed files with 48 additions and 21 deletions

View file

@ -1,3 +1,4 @@
// Copyright (C) 2009, 2010, 2011 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique
@ -216,7 +217,7 @@ using namespace spot;
}
%nodefault std::ostream;
%nodefaultctor std::ostream;
namespace std {
class ostream {};
class ofstream : public ostream
@ -230,7 +231,7 @@ namespace std {
public:
ostringstream();
std::string str() const;
~ofstream();
~ostringstream();
};
}