spot/src/ltlenv/defaultenv.hh
Alexandre Duret-Lutz e6cab5321a typo
2003-04-29 13:08:42 +00:00

32 lines
755 B
C++

#ifndef SPOT_LTLENV_DEFAULT_ENVIRONMENT_HH
# define SPOT_LTLENV_DEFAULT_ENVIRONMENT_HH
# include "environment.hh"
namespace spot
{
namespace ltl
{
/// \brief A laxist environment.
///
/// This environment recognizes all atomic propositions.
///
/// This is a singleton. Use default_environment::instance()
/// to obtain the instance.
class default_environment : public environment
{
public:
virtual formula* require(const std::string& prop_str);
virtual const std::string& name();
/// Get the sole instance of spot::ltl::default_environment.
static default_environment& instance();
protected:
default_environment();
};
}
}
#endif // SPOT_LTLENV_DEFAULT_ENVIRONMENT_HH