Use the spot::formater class in ltlcheck to format output commands.

* src/misc/formater.hh (printable_value): Add more accessors.
* src/bin/ltlcheck.cc: Use the formater class to factor the %-expansion
loop, and reuse filenames (such as %F, %S, and %L) between executions
on the same formula.
This commit is contained in:
Alexandre Duret-Lutz 2012-10-05 13:38:36 +02:00
parent a303c8603c
commit f6dc6412d3
2 changed files with 280 additions and 245 deletions

View file

@ -45,11 +45,26 @@ namespace spot
protected:
T val_;
public:
operator T() const
const T& val() const
{
return val_;
}
T& val()
{
return val_;
}
operator const T&() const
{
return val();
}
operator T&()
{
return val();
}
printable_value&
operator=(const T& new_val)
{