00001 /*<<<<<COPYRIGHT*/ 00002 /* 00003 * RTK The report toolkit 00004 * Copyright (C) 2003 Francisco Santiago Capel Torres 00005 00006 * xmlparser.h RTK convert xml parser 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 */ 00019 /*>>>>>COPYRIGHT*/ 00020 00021 #ifndef XMLPARSER_H 00022 #define XMLPARSER_H 00023 00024 #include <qxml.h> 00025 00026 class XmlParser : public QXmlDefaultHandler { 00027 public: 00028 XmlParser(); 00029 ~XmlParser(); 00030 bool read(const char *xmlfilename); 00031 00032 private: 00033 bool error (const QXmlParseException &exception); 00034 bool warning(const QXmlParseException&); 00035 bool fatalError(const QXmlParseException&); 00036 00037 }; 00038 00039 #endif // XMLPARSER_H