00001 /* 00002 * File: catch_clause.hh 00003 * $Id: catch_clause.hh,v 1.4 2002/06/26 20:45:49 alec Exp $ 00004 * 00005 * Author: Alec Panoviciu (alecu@email.com) 00006 * 00007 * Comments: 00008 * 00009 * Revision history: 00010 * 00011 * $Log: catch_clause.hh,v $ 00012 * Revision 1.4 2002/06/26 20:45:49 alec 00013 * g++ 3.x happy 00014 * 00015 * Revision 1.3 2002/06/13 11:35:40 alec 00016 * added #line stuff 00017 * 00018 * Revision 1.2 2002/05/27 02:58:46 alec 00019 * doc update 00020 * 00021 * Revision 1.1 2002/05/10 07:17:32 alec 00022 * *** empty log message *** 00023 * 00024 */ 00025 00026 00027 /* 00028 Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com) 00029 00030 This program is free software; you can redistribute it and/or modify 00031 it under the terms of the GNU General Public License as published by 00032 the Free Software Foundation; either version 2 of the License, or 00033 (at your option) any later version. 00034 00035 This program is distributed in the hope that it will be useful, 00036 but WITHOUT ANY WARRANTY; without even the implied warranty of 00037 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00038 GNU General Public License for more details. 00039 00040 You should have received a copy of the GNU General Public License 00041 along with this program; if not, write to the Free Software 00042 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00043 00044 */ 00045 00046 #ifndef __CATCH_CLAUSE_HH__ 00047 #define __CATCH_CLAUSE_HH__ 00048 00049 #include <string> 00050 using namespace std; 00051 00052 #include "debug.h" 00053 #include "parse_util.hh" 00054 00062 class CatchClause 00063 { 00064 public: 00065 00066 CatchClause (const string &exceptionDecl_, const Position &edPos, 00067 const string &code_, const Position &codePos) : 00068 exceptionDecl(edPos, exceptionDecl_), code(codePos, code_) 00069 {} 00070 00071 CodeChunk exceptionDecl; 00072 CodeChunk code; 00073 }; 00074 00075 00076 #endif /* #ifndef __CATCH_CLAUSE_HH__ */