Torc  0.1
torcxmlreader.h
Go to the documentation of this file.
1 #ifndef TORCXMLREADER_H
2 #define TORCXMLREADER_H
3 
4 // Qt
5 #include <QVariant>
6 #include <QXmlStreamReader>
7 
9 {
10  public:
11  explicit TorcXMLReader(const QString &File);
12  explicit TorcXMLReader(QByteArray &Data);
13  ~TorcXMLReader() = default;
14 
15  bool IsValid (QString &Message) const;
16  QVariantMap GetResult (void) const;
17 
18  private:
19  bool ReadXML (void);
20  bool ReadElement (QVariantMap &Map);
21 
22  private:
23  QXmlStreamReader m_reader;
24  QVariantMap m_map;
25  bool m_valid;
26  QString m_message;
27 };
28 
29 #endif // TORCXMLREADER_H
~TorcXMLReader()=default
TorcXMLReader(const QString &File)
QVariantMap GetResult(void) const
bool IsValid(QString &Message) const