configxmlparser.h 605 B

12345678910111213141516171819202122232425262728
  1. #ifndef CONFIGXMLPARSER_H
  2. #define CONFIGXMLPARSER_H
  3. #include <QString>
  4. #include <QDomElement>
  5. #include "generatoroutputview.h"
  6. #include "generatordata.h"
  7. class ConfigXmlParser
  8. {
  9. public:
  10. ConfigXmlParser(GeneratorOutputView &outputView, GeneratorData &generatorData);
  11. bool parse();
  12. private:
  13. void handleNode(const QDomElement &element, const QString &keyPrefix);
  14. void handleChildNodes(const QDomElement &element, const QString &keyPrefix);
  15. GeneratorOutputView &m_outputView;
  16. GeneratorData &m_generatorData;
  17. };
  18. #endif // CONFIGXMLPARSER_H