Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

cat.hpp

Go to the documentation of this file.
00001 #ifndef _CAT_HPP_
00002 #define _CAT_HPP_
00003 
00004 #include <qxml.h>
00005 #include <qfile.h>
00006 #include "../propositiongraph.hpp"
00007 #include "../category.hpp"
00008 
00009 class Cat : public QXmlDefaultHandler
00010 {
00011 public:
00012         Cat(PropositionGraph* cl);
00013         ~Cat();
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     Category *current;
00031 
00032     void init();
00033   
00034 private:
00035     QString currentText;
00036 
00037 };
00038 
00039 #endif //_CAT_HPP_
Untitled Document Pesquisa Psi SourceForge.net Logo