gehe zur Dokumentation dieser Datei
9 #include <QLoggingCategory>
10 #include <QSharedPointer>
12 #include <QXmlStreamReader>
15 Q_DECLARE_LOGGING_CATEGORY(paos)
24 explicit ElementParser(QSharedPointer<QXmlStreamReader> pXmlReader);
55 template<
typename T>
bool assertMandatoryList(
const QVector<T>& pList,
const char*
const pElementName);
85 qCWarning(paos) <<
"Mandatory list is empty:" << pElementName;
bool readUniqueElementText(QString &pText)
Returns the text (simplified()) between the current start element and the corresponding end element,...
Definition: ElementParser.cpp:71
QSharedPointer< QXmlStreamReader > mXmlReader
Definition: ElementParser.h:76
virtual ~ElementParser()
Definition: ElementParser.cpp:16
bool readNextStartElement()
Like QXmlStreamReader::readNextStartElement(), but also checks mParseError.
Definition: ElementParser.cpp:21
ElementParser(QSharedPointer< QXmlStreamReader > pXmlReader)
Definition: ElementParser.cpp:9
bool assertNoDuplicateElement(bool pNotYetSeen)
Issues a log warning and sets the error when a duplicate element has been encountered.
Definition: ElementParser.cpp:49
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
QString readElementText()
Returns the text (simplified()) between the current start element and the corresponding end element.
Definition: ElementParser.cpp:27
bool mParseError
Definition: ElementParser.h:77
bool assertMandatoryList(const QVector< T > &pList, const char *const pElementName)
Issues a log warning and sets the error when the list is empty.
Definition: ElementParser.h:81
Definition: ElementParser.h:22
void assertMandatoryElement(const QString &pValue, const char *const pElementName)
Issues a log warning and sets the error when the element has not been set, i.e.
Definition: ElementParser.cpp:61