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

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed May 23 2012 12:06:45 for spot by doxygen 1.7.6.1