source: NonGTP/Xerces/xerces/include/xercesc/dom/DOMErrorHandler.hpp @ 358

Revision 358, 4.3 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1#ifndef DOMErrorHandler_HEADER_GUARD_
2#define DOMErrorHandler_HEADER_GUARD_
3
4/*
5 * Copyright 2002,2004 The Apache Software Foundation.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20/*
21 * $Log: DOMErrorHandler.hpp,v $
22 * Revision 1.8  2004/09/08 13:55:39  peiyongz
23 * Apache License Version 2.0
24 *
25 * Revision 1.7  2003/03/07 19:59:05  tng
26 * [Bug 11692] Unimplement the hidden constructors and assignment operator to remove warnings from gcc.
27 *
28 * Revision 1.6  2002/11/04 15:09:24  tng
29 * C++ Namespace Support.
30 *
31 * Revision 1.5  2002/08/22 15:04:57  tng
32 * Remove unused parameter variables in inline functions.
33 *
34 * Revision 1.4  2002/07/15 19:26:34  tng
35 * DOM L3: remove non standard resetErrors
36 *
37 * Revision 1.3  2002/06/06 20:53:06  tng
38 * Documentation Fix: Update the API Documentation for DOM headers
39 *
40 * Revision 1.2  2002/05/30 19:24:48  knoaman
41 * documentation update
42 *
43 * Revision 1.1  2002/05/23 15:47:24  knoaman
44 * DOM L3 core - support for DOMError, DOMErrorHandler and DOMLocator
45 *
46 */
47
48
49#include <xercesc/util/XercesDefs.hpp>
50
51XERCES_CPP_NAMESPACE_BEGIN
52
53
54class DOMError;
55
56/**
57  * Basic interface for DOM error handlers.
58  *
59  * <p>DOMErrorHandler is a callback interface that the DOM implementation
60  * can call when reporting errors that happens while processing XML data, or
61  * when doing some other processing (e.g. validating a document).</p>
62  *
63  * <p>The application that is using the DOM implementation is expected to
64  * implement this interface.</p>
65  *
66  * @see DOMBuilder#setErrorHandler
67  * @since DOM Level 3
68  */
69
70class CDOM_EXPORT DOMErrorHandler
71{
72protected:
73    // -----------------------------------------------------------------------
74    //  Hidden constructors
75    // -----------------------------------------------------------------------
76    /** @name Hidden constructors */
77    //@{   
78    DOMErrorHandler() {};
79    //@}
80
81private:
82    // -----------------------------------------------------------------------
83    // Unimplemented constructors and operators
84    // -----------------------------------------------------------------------
85    /** @name Unimplemented constructors and operators */
86    //@{
87    DOMErrorHandler(const DOMErrorHandler &);
88    DOMErrorHandler & operator = (const DOMErrorHandler &);
89    //@}
90
91public:
92    // -----------------------------------------------------------------------
93    //  All constructors are hidden, just the destructor is available
94    // -----------------------------------------------------------------------
95    /** @name Destructor */
96    //@{
97    /**
98     * Destructor
99     *
100     */
101    virtual ~DOMErrorHandler() {};
102    //@}
103
104    // -----------------------------------------------------------------------
105    //  Virtual DOMErrorHandler interface
106    // -----------------------------------------------------------------------
107    /** @name Functions introduced in DOM Level 3 */
108    //@{
109    /**
110     * This method is called on the error handler when an error occures.
111     *
112     * <p><b>"Experimental - subject to change"</b></p>
113     *
114     * @param domError The error object that describes the error, this object
115     *                 may be reused by the DOM implementation across multiple
116     *                 calls to the handleEvent method.
117     * @return If the handleError method returns <code>true</code> the DOM
118     *         implementation should continue as if the error didn't happen
119     *         when possible, if the method returns <code>false</code> then the
120     *         DOM implementation should stop the current processing when
121     *         possible.
122     *
123     * @since DOM Level 3
124     */
125    virtual bool handleError(const DOMError& domError) = 0;
126    //@}
127
128};
129
130XERCES_CPP_NAMESPACE_END
131
132#endif
Note: See TracBrowser for help on using the repository browser.