ErrorHandler.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: ErrorHandler.hpp 932889 2010-04-11 13:10:10Z borisk $
*/
#if !defined(XERCESC_INCLUDE_GUARD_ERRORHANDLER_HPP)
#define XERCESC_INCLUDE_GUARD_ERRORHANDLER_HPP
#include <xercesc/util/XercesDefs.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class SAXParseException;
class SAX_EXPORT ErrorHandler
{
public:
ErrorHandler()
{
}
virtual ~ErrorHandler()
{
}
virtual void warning(const SAXParseException& exc) = 0;
virtual void error(const SAXParseException& exc) = 0;
virtual void fatalError(const SAXParseException& exc) = 0;
virtual void resetErrors() = 0;
private :
/* Unimplemented constructors and operators */
/* Copy constructor */
ErrorHandler(const ErrorHandler&);
/* Assignment operator */
ErrorHandler& operator=(const ErrorHandler&);
};
XERCES_CPP_NAMESPACE_END
#endif
SAX_EXPORT
#define SAX_EXPORT
Definition: XercesDefs.hpp:164
XercesDefs.hpp
ErrorHandler
Basic interface for SAX error handlers.
Definition: ErrorHandler.hpp:60
ErrorHandler::ErrorHandler
ErrorHandler()
Default constructor.
Definition: ErrorHandler.hpp:66
ErrorHandler::~ErrorHandler
virtual ~ErrorHandler()
Destructor.
Definition: ErrorHandler.hpp:71
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
SAXParseException
Encapsulate an XML parse error or warning.
Definition: SAXParseException.hpp:48