COVISE Core
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
14namespace covise
15{
16
17// Receives Error notifications.
18class coConfigRootErrorHandler : public xercesc::DefaultHandler
19{
20public:
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
31private:
33};
34}
35#endif
list of all chemical elements
Definition: coConfig.h:27
Definition: coConfigRootErrorHandler.h:19
void warning(const xercesc::SAXParseException &e)
Definition: coConfigRootErrorHandler.cpp:17
bool fSawErrors
Definition: coConfigRootErrorHandler.h:32
void error(const xercesc::SAXParseException &e)
Definition: coConfigRootErrorHandler.cpp:33
void fatalError(const xercesc::SAXParseException &e)
Definition: coConfigRootErrorHandler.cpp:39
coConfigRootErrorHandler()
Definition: coConfigRootErrorHandler.cpp:12
void resetErrors()
Definition: coConfigRootErrorHandler.cpp:49
bool getSawErrors() const
Definition: coConfigRootErrorHandler.cpp:44