00001 #ifndef _ACSDOMERROR_HANDLER_H 00002 #define _ACSDOMERROR_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: acsDOMErrorHandler.h,v 1.3 2010/04/27 12:20:58 htischer 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/util/XercesDefs.hpp> 00037 #include <xercesc/dom/DOMError.hpp> 00038 #include <xercesc/dom/DOMErrorHandler.hpp> 00039 #include <iostream> 00040 00043 //using XERCES_CPP_NAMESPACE_QUALIFIER DOMErrorHandler; 00044 //using XERCES_CPP_NAMESPACE_QUALIFIER DOMError; 00045 00046 namespace Parameters { 00047 00051 class acsDOMErrorHandler : public XERCES_CPP_NAMESPACE::DOMErrorHandler 00052 { 00053 public: 00057 acsDOMErrorHandler(); 00058 00062 virtual ~acsDOMErrorHandler(); 00063 00064 virtual bool handleError(const XERCES_CPP_NAMESPACE::DOMError& domError); 00065 }; 00066 00067 } 00068 #endif