00001 // Copyright (C) 2009 Laboratoire de Recherche et Développement 00002 // de l'Epita (LRDE). 00003 // Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6), 00004 // département Systèmes Répartis Coopératifs (SRC), Université Pierre 00005 // et Marie Curie. 00006 // 00007 // This file is part of Spot, a model checking library. 00008 // 00009 // Spot is free software; you can redistribute it and/or modify it 00010 // under the terms of the GNU General Public License as published by 00011 // the Free Software Foundation; either version 2 of the License, or 00012 // (at your option) any later version. 00013 // 00014 // Spot is distributed in the hope that it will be useful, but WITHOUT 00015 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00016 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00017 // License for more details. 00018 // 00019 // You should have received a copy of the GNU General Public License 00020 // along with Spot; see the file COPYING. If not, write to the Free 00021 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00022 // 02111-1307, USA. 00023 00024 #ifndef SPOT_LTLENV_DECLENV_HH 00025 # define SPOT_LTLENV_DECLENV_HH 00026 00027 # include "environment.hh" 00028 # include <string> 00029 # include <map> 00030 # include "ltlast/atomic_prop.hh" 00031 00032 namespace spot 00033 { 00034 namespace ltl 00035 { 00036 00042 class declarative_environment : public environment 00043 { 00044 public: 00045 declarative_environment(); 00046 ~declarative_environment(); 00047 00050 bool declare(const std::string& prop_str); 00051 00052 virtual ltl::formula* require(const std::string& prop_str); 00053 00055 virtual const std::string& name(); 00056 00057 typedef std::map<const std::string, ltl::atomic_prop*> prop_map; 00058 00060 const prop_map& get_prop_map() const; 00061 00062 private: 00063 prop_map props_; 00064 }; 00065 } 00066 } 00067 00068 #endif // SPOT_LTLENV_DECLENV_HH