qgerror.h

00001 /***************************************************************************
00002  *   QGame++                                                               *
00003  *   =======                                                               *
00004  *   A Quantum Gate And Measurement Emulator.                              *
00005  *                                                                         *
00006  *   Copyright (C) 2003/04 by Manuel Nickschas                             *
00007  *   <qgame-devel@nickschas.de>                                            *
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it 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  *   This program is distributed in the hope that it will be useful,       *
00015  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00016  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00017  *   GNU General Public License for more details.                          *
00018  *                                                                         *
00019  *   You should have received a copy of the GNU General Public License     *
00020  *   along with this program; if not, write to the                         *
00021  *   Free Software Foundation, Inc.,                                       *
00022  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00023  ***************************************************************************/
00024 
00025 #ifndef _QGERROR_H_
00026 #define _QGERROR_H_
00027 
00028 #include <string>
00029 
00030 /****************************************************************************
00031  * Error handling functions. This is rather limited and maybe preliminary.  *
00032  ****************************************************************************/
00033 
00034 namespace qgame {
00035 
00037   enum {
00038     E_OK, E_OUTOFBOUNDS, E_SYNTAX, E_MISMATCH, E_IO, E_NOORACLE
00039   };
00040 
00042   class Error {
00043    public:
00044     std::string s;    
00045     Error(int code);  
00046   };
00047 };
00048 
00049 #endif

Generated on Sat Apr 3 18:42:27 2004 for QGame++ by doxygen 1.3.5