Commit 38f7cac8 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/ltlvisit/tostring.cc (to_spin_string_visitor): Move to

anonymous namespace.
parent 91b9682b
2004-10-22 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltlvisit/tostring.cc (to_spin_string_visitor): Move to
anonymous namespace.
2004-10-21 Alexandre Duret-Lutz <adl@src.lip6.fr> 2004-10-21 Alexandre Duret-Lutz <adl@src.lip6.fr>
* wrap/python/Makefile.am (_spot_la_SOURCES): Add spot_wrap.h. * wrap/python/Makefile.am (_spot_la_SOURCES): Add spot_wrap.h.
......
...@@ -185,23 +185,6 @@ namespace spot ...@@ -185,23 +185,6 @@ namespace spot
std::ostream& os_; std::ostream& os_;
bool top_level_; bool top_level_;
}; };
}
std::ostream&
to_string(const formula* f, std::ostream& os)
{
to_string_visitor v(os);
f->accept(v);
return os;
}
std::string
to_string(const formula* f)
{
std::ostringstream os;
to_string(f, os);
return os.str();
}
class to_spin_string_visitor : public to_string_visitor class to_spin_string_visitor : public to_string_visitor
{ {
...@@ -330,6 +313,24 @@ namespace spot ...@@ -330,6 +313,24 @@ namespace spot
} }
}; };
} // anonymous
std::ostream&
to_string(const formula* f, std::ostream& os)
{
to_string_visitor v(os);
f->accept(v);
return os;
}
std::string
to_string(const formula* f)
{
std::ostringstream os;
to_string(f, os);
return os.str();
}
std::ostream& std::ostream&
to_spin_string(const formula* f, std::ostream& os) to_spin_string(const formula* f, std::ostream& os)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment