defaultenv.cc 565 Bytes
Newer Older
1
2
3
4
5
6
7
#include "defaultenv.hh"

namespace spot
{
  namespace ltl
  {

8
    formula*
9
10
    default_environment::require(const std::string& s)
    {
11
      return new atomic_prop(s, *this);
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    }

    const std::string&
    default_environment::name()
    {
      static std::string name("default environment");
      return name;
    }

    default_environment::default_environment()
    {
    }

    default_environment& 
    default_environment::instance()
    {
      static default_environment* singleton = new default_environment();
      return *singleton;
    }

  }
}