spot  0.8.1
common.hh
Go to the documentation of this file.
00001 // Copyright (C) 2003, 2004, 2006  Laboratoire d'Informatique de Paris 6 (LIP6),
00002 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
00003 // et Marie Curie.
00004 //
00005 // This file is part of Spot, a model checking library.
00006 //
00007 // Spot is free software; you can redistribute it and/or modify it
00008 // under the terms of the GNU General Public License as published by
00009 // the Free Software Foundation; either version 2 of the License, or
00010 // (at your option) any later version.
00011 //
00012 // Spot is distributed in the hope that it will be useful, but WITHOUT
00013 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00014 // or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
00015 // License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Spot; see the file COPYING.  If not, write to the Free
00019 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00020 // 02111-1307, USA.
00021 
00022 #ifndef SPOT_IFACE_GSPN_COMMON_HH
00023 # define SPOT_IFACE_GSPN_COMMON_HH
00024 
00025 # include <string>
00026 # include <iosfwd>
00027 
00028 // Do not include gspnlib.h here, or it will polute the user's
00029 // namespace with internal C symbols.
00030 
00031 namespace spot
00032 {
00033 
00035   class gspn_exception
00036   {
00037   public:
00038     gspn_exception(const std::string& where, int err)
00039       : err_(err), where_(where)
00040     {
00041     }
00042 
00043     int
00044     get_err() const
00045     {
00046       return err_;
00047     }
00048 
00049     std::string
00050     get_where() const
00051     {
00052       return where_;
00053     }
00054 
00055   private:
00056     int err_;
00057     std::string where_;
00058   };
00059 
00060   std::ostream& operator<<(std::ostream& os, const gspn_exception& e);
00061 }
00062 
00063 #endif // SPOT_IFACE_GSPN_COMMON_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Sun Dec 18 2011 12:57:14 for spot by doxygen 1.7.6.1