00001 #ifndef _MPSI_HPP_ 00002 #define _MPSI_HPP_ 00003 00004 #include <qxml.h> 00005 #include <qfile.h> 00006 #include "../propositiongraph.hpp" 00007 00008 class Mpsi : public QXmlDefaultHandler 00009 { 00010 public: 00011 Mpsi(PropositionGraph* cl, QString pn); 00012 ~Mpsi(); 00013 00014 bool startElement(const QString &namespaceURI, 00015 const QString &localName, 00016 const QString &qName, 00017 const QXmlAttributes &attribs); 00018 bool endElement(const QString &namespaceURI, 00019 const QString &localName, 00020 const QString &qName); 00021 bool characters(const QString &str); 00022 bool fatalError(const QXmlParseException &exception); 00026 PropositionGraph* caller; 00027 void ioError(const QFile file, const QString message); 00028 Edge* e; 00029 QString type; 00030 QString target; 00031 void init(); 00032 QString pname; 00033 00034 00035 private: 00036 QString currentText; 00037 00038 }; 00039 00040 00041 #endif //_MPSI_HPP_