00001 #ifndef _MYDOMERROR_HANDLER_H 00002 #define _MYDOMERROR_HANDLER_H 00003 00004 /******************************************************************************* 00005 * ALMA - Atacama Large Millimiter Array 00006 * (c) Associated Universities Inc., 2002 00007 * (c) European Southern Observatory, 2002 00008 * Copyright by ESO (in the framework of the ALMA collaboration) 00009 * and Cosylab 2002, All rights reserved 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Lesser General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2.1 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this library; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 * 00025 * "@(#) $Id: MyDOMErrorHandler.h,v 1.2 2008/07/25 07:52:19 cparedes Exp $" 00026 * 00027 * who when what 00028 * -------- -------- ---------------------------------------------- 00029 * sharring 10/27/04 created 00030 */ 00031 00032 #ifndef __cplusplus 00033 #error This is a C++ include file and cannot be used from plain C 00034 #endif 00035 00036 #include <xercesc/dom/DOMError.hpp> 00037 #include <xercesc/dom/DOMErrorHandler.hpp> 00038 #include <iostream> 00039 00042 XERCES_CPP_NAMESPACE_USE 00043 00047 class MyDOMErrorHandler : public DOMErrorHandler 00048 { 00049 public: 00053 MyDOMErrorHandler(); 00054 00058 virtual ~MyDOMErrorHandler(); 00059 00060 virtual bool handleError(const DOMError& domError); 00061 }; 00062 00063 #endif