You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
#ifndef XMLREADER_H
|
|
#define XMLREADER_H
|
|
#include <QObject>
|
|
#include <QtXml>
|
|
|
|
class XMLReader
|
|
{
|
|
private:
|
|
QDomDocument _xmlDoc;
|
|
QString _xmlAddress;
|
|
QDomElement _root;
|
|
QVector<QString> _DBNameVector;
|
|
QVector<QString> _tableNamevector;
|
|
QVector<QDomElement> _tableElementVector;
|
|
QVector<QDomElement> _DBElementVector;
|
|
QVector<QDomElement> _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<QString> getDatabaseNameList();
|
|
QVector<QString> getDBTableList(QString DBName);
|
|
QVector<QString> getDBTableList(QDomElement DBElement);
|
|
QVector<QDomElement> getFieldElements(QDomElement tableElement);
|
|
QVector<QDomElement> getFieldElements(QString tableName);
|
|
QVector<QDomElement> getLastFieldElements();
|
|
|
|
|
|
};
|
|
|
|
#endif // XMLREADER_H
|
|
|