equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef XML_MODULE_ERROR_HANDLER |
|
20 #define XML_MODULE_ERROR_HANDLER |
|
21 |
|
22 #include "CmdGlobals.h" |
|
23 #ifdef __WIN__ |
|
24 #pragma warning(disable:4786) |
|
25 #endif |
|
26 #include <xercesc/dom/DOMErrorHandler.hpp> |
|
27 |
|
28 XERCES_CPP_NAMESPACE_USE |
|
29 |
|
30 /** |
|
31 * DOM error handler |
|
32 */ |
|
33 class XMLModuleErrorHandler : public DOMErrorHandler |
|
34 { |
|
35 public: |
|
36 XMLModuleErrorHandler(); |
|
37 ~XMLModuleErrorHandler(); |
|
38 |
|
39 public: |
|
40 /** |
|
41 * True if there was errors |
|
42 * @return true if there was errors parameter value to check |
|
43 */ |
|
44 bool sawErrors() const; |
|
45 bool handleError(const DOMError& domError); |
|
46 void resetErrors(); |
|
47 |
|
48 private : |
|
49 XMLModuleErrorHandler(const XMLModuleErrorHandler&); |
|
50 void operator=(const XMLModuleErrorHandler&); |
|
51 |
|
52 private: |
|
53 bool iSawErrors; |
|
54 }; |
|
55 |
|
56 |
|
57 #endif |