base.h

Go to the documentation of this file.
00001 // Copyright (C) 2004 Xavier Décoret <Xavier.Decoret@imag.fr>
00002 
00003 // This program is free software; you can redistribute it and/or 
00004 // modify it under the terms of the GNU General Public License 
00005 // as published by the Free Software Foundation; either 
00006 // version 2 of the License, or (at your option) any later 
00007 // version.
00008 
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 
00018 #ifndef XDKBIB_BASE_H
00019 #define XDKBIB_BASE_H
00020 
00021 #if HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024 
00025 #include <string>
00026 #include <stdexcept>
00027 
00028 namespace xdkbib
00029 {
00030   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00031   // Interface of parsing_error
00032   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00033   class parsing_error : public std::runtime_error
00034   {
00035   public:
00036     parsing_error(const std::string& what) throw();
00037     parsing_error(const std::string& fileName,const std::string& what,unsigned int l,unsigned int c) throw();
00038     virtual ~parsing_error() throw();
00039     const std::string& fileName() const;
00040     unsigned int line() const;
00041     unsigned int column() const;
00042     bool isInline() const;
00043   private:
00044     bool         inline_;
00045     std::string  fileName_;
00046     unsigned int l_;
00047     unsigned int c_;
00048   }; 
00049 }
00050 
00051 #endif // XDKBIB_BASE_H

Generated on Wed Jan 24 01:14:42 2007 for XDKBIBTEX by  doxygen 1.5.1