COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coConfigRootErrorHandler.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef COCONFIGROOTERRORHANDLER_H
9 #define COCONFIGROOTERRORHANDLER_H
10 
11 #include <xercesc/sax2/DefaultHandler.hpp>
12 #include <config/coConfigLog.h>
13 
14 namespace covise
15 {
16 
17 // Receives Error notifications.
18 class coConfigRootErrorHandler : public xercesc::DefaultHandler
19 {
20 public:
22 
23  void warning(const xercesc::SAXParseException &e);
24 
25  void error(const xercesc::SAXParseException &e);
26 
27  void fatalError(const xercesc::SAXParseException &e);
28  bool getSawErrors() const;
29  void resetErrors();
30 
31 private:
32  bool fSawErrors;
33 };
34 }
35 #endif
void warning(const xercesc::SAXParseException &e)
Definition: coConfigRootErrorHandler.cpp:17
void resetErrors()
Definition: coConfigRootErrorHandler.cpp:49
Definition: coConfigRootErrorHandler.h:18
bool getSawErrors() const
Definition: coConfigRootErrorHandler.cpp:44
void error(const xercesc::SAXParseException &e)
Definition: coConfigRootErrorHandler.cpp:33
coConfigRootErrorHandler()
Definition: coConfigRootErrorHandler.cpp:12
void fatalError(const xercesc::SAXParseException &e)
Definition: coConfigRootErrorHandler.cpp:39
bool fSawErrors
Definition: coConfigRootErrorHandler.h:32