validateurparser.h
Aller à la documentation de ce fichier.00001 #ifndef VALIDATEURPARSER_H
00002 #define VALIDATEURPARSER_H
00003
00011 #include <QtXml>
00012 #include <QString>
00013 #include <QFile>
00014 #include <QTextStream>
00015
00023 class ValidateurParser : public QXmlDefaultHandler
00024 {
00025 private :
00026 QString nom_fichier;
00027 QFile fichier;
00028 QTextStream sortie;
00029 public:
00030
00036 ValidateurParser();
00037
00046 bool startDocument();
00047
00056 bool endDocument();
00057
00069 bool startElement(const QString& n, const QString& l, const QString& q, const QXmlAttributes& a);
00070
00079 bool characters(const QString & n);
00080
00091 bool endElement(const QString&, const QString &, const QString&);
00092
00098 QString getNomFichier();
00099
00105 void setNomFichier(QString n);
00106 };
00107
00108 #endif // VALIDATEURPARSER_H