5 #include <QXmlAttributes>
11 /*! \brief Base class for parsing maps from XML documents */
13 class parseBaseHandler : public QXmlDefaultHandler {
17 QString errorProtocol();
18 QString parseHREF(QString);
19 virtual bool startElement(const QString &, const QString &,
21 const QXmlAttributes &atts) = 0;
22 virtual bool endElement(const QString &, const QString &,
24 virtual bool characters(const QString &) = 0;
26 virtual QString errorString() = 0;
27 bool fatalError(const QXmlParseException &);
28 void setModel(VymModel *);
29 void setTmpDir(QString);
30 void setInputFile(const QString &);
31 void setInputString(const QString &);
32 void setLoadMode(const LoadMode &, int p = -1);
33 bool readHtmlAttr(const QXmlAttributes &);