把各种元件做出单独的类。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-11-22 22:18:18 +08:00
parent ccc4c1d90c
commit 407fe62995
25 changed files with 526 additions and 18 deletions

View File

@@ -5,13 +5,21 @@
#include <QStringRef>
#include <QXmlStreamReader>
#include <QDebug>
class BasicElementInfo;
//typedef bool (BasicElementInfo::*derivedParseHandle)(QXmlStreamReader &reader);
class BasicElementInfo{
public:
BasicElementInfo();
virtual bool parse(QXmlStreamReader &reader);
protected:
bool parseBasicInfo(QXmlStreamReader &reader);
QStringRef name;
QStringRef id;
QString nextLinkString;
QString prevousLinkString;
// derivedParseHandle derivedParse;
virtual bool derivedParse(QXmlStreamReader &reader);
// QString nextLinkString;
// QString prevousLinkString;
};