Commit 0fed46b7 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Add a string version of to_lbt_string().

* src/ltlvisit/, src/ltlvisit/lbt.hh (to_lbt_string):
New string version.
parent 902dadb8
......@@ -205,5 +205,13 @@ namespace spot
return os;
to_lbt_string(const formula* f)
std::ostringstream os;
to_lbt_string(f, os);
return os.str();
......@@ -24,6 +24,7 @@
#include <ltlast/formula.hh>
#include <iosfwd>
#include <string>
namespace spot
......@@ -44,6 +45,18 @@ namespace spot
/// \param os The stream where it should be output.
to_lbt_string(const formula* f, std::ostream& os);
/// \brief Output an LTL formula as a string in LBT's format.
/// The formula must be an LTL formula (ELTL and PSL operators
/// are not supported). The M and W operator will be output
/// as-is, because this is accepted by LBTT, however if you
/// plan to use the output with other tools, you should probably
/// rewrite these two operators using unabbreviate_wm().
/// \param f The formula to translate.
to_lbt_string(const formula* f);
/// @}
Markdown is supported
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