#ifndef XMLREADER_H #define XMLREADER_H #include #include class XMLReader { private: QDomDocument _xmlDoc; QString _xmlAddress; QDomElement _root; QVector _DBNameVector; QVector _tableNamevector; QVector _tableElementVector; QVector _DBElementVector; QVector _fieldElementVector; // XMLReader operator=(const XMLReader& ixml) // { // _xmlDoc = ixml._xmlDoc; // _xmlAddress = ixml._xmlAddress; // _root = ixml._root; // _DBNameVector = ixml._DBNameVector; // _DBElementVector = ixml._DBElementVector; // _tableNamevector = ixml._tableNamevector; // _tableElementVector = ixml._tableElementVector; // _fieldElementVector = ixml._fieldElementVector; // } public: XMLReader(QString xmlAddress); QVector getDatabaseNameList(); QVector getDBTableList(QString DBName); QVector getDBTableList(QDomElement DBElement); QVector getFieldElements(QDomElement tableElement); QVector getFieldElements(QString tableName); QVector getLastFieldElements(); }; #endif // XMLREADER_H