14#include <QLoggingCategory>
15#include <QSharedPointer>
16#include <QXmlStreamReader>
19Q_DECLARE_LOGGING_CATEGORY(paos)
21class test_ElementParser;
28 friend class ::test_ElementParser;
Definition ConnectionHandle.h:17
Definition ElementParser.h:27
bool assertMandatoryList(const QList< T > &pList, const char *const pElementName)
Issues a log warning and sets the error when the list is empty.
Definition ElementParser.h:110
ConnectionHandle parseConnectionHandle()
Definition ElementParser.cpp:123
QStringView getElementTypeByNamespace(const QString &pNamespace) const
Definition ElementParser.cpp:103
bool parserFailed() const
Definition ElementParser.cpp:21
bool readNextStartElement()
Like QXmlStreamReader::readNextStartElement(), but also checks mParseError.
Definition ElementParser.cpp:27
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:67
ElementParser(QSharedPointer< QXmlStreamReader > pXmlReader)
Definition ElementParser.cpp:11
QString readElementText()
Returns the text (simplified()) between the current start element and the corresponding end element.
Definition ElementParser.cpp:33
QStringView getElementName() const
Returns the name of the current element and issues a log message with it.
Definition ElementParser.cpp:95
bool assertNoDuplicateElement(bool pNotYetSeen)
Issues a log warning and sets the error when a duplicate element has been encountered.
Definition ElementParser.cpp:55
void initData(const QByteArray &pXmlData)
Definition ElementParser.cpp:109
void skipCurrentElement() const
Skips parsing of the current element Used to ignore unknown or unrecognized elements while parsing.
Definition ElementParser.cpp:89
bool readUniqueElementText(QString &pText)
Returns the text (simplified()) between the current start element and the corresponding end element,...
Definition ElementParser.cpp:77
void setParserFailed()
Definition ElementParser.cpp:117
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114