9 #include <QLoggingCategory>
10 #include <QSharedPointer>
12 #include <QXmlStreamReader>
15 Q_DECLARE_LOGGING_CATEGORY(paos)
34 bool readNextStartElement();
40 QString readElementText();
47 void assertMandatoryElement(
const QString& pValue,
const char* pElementName);
55 template<
typename T>
bool assertMandatoryList(
const QVector<T>& pList,
const char* pElementName);
62 bool assertNoDuplicateElement(
bool pNotYetSeen);
74 bool readUniqueElementText(QString& pText);
81 template<
typename T>
bool ElementParser::assertMandatoryList(
const QVector<T>& pList,
const char* pElementName)
85 qCWarning(paos) <<
"Mandatory list is empty:" << pElementName;
QSharedPointer< QXmlStreamReader > mXmlReader
Definition: ElementParser.h:76
bool mParseError
Definition: ElementParser.h:77
Definition: ElementParser.h:21