52 #ifndef Patternist_MaintainingReader_H 53 #define Patternist_MaintainingReader_H 56 #include <QSourceLocation> 58 #include <QStringList> 59 #include <QXmlStreamReader> 82 template<
typename TokenLookupClass,
83 typename LookupKey =
typename TokenLookupClass::NodeName>
110 template<
typename TokenLookupClass,
111 typename LookupKey =
typename TokenLookupClass::NodeName>
113 ,
protected TokenLookupClass
129 inline typename TokenLookupClass::NodeName currentElementName()
const;
140 void warning(
const QString &message)
const;
146 virtual QUrl documentURI()
const = 0;
152 virtual bool isAnyAttributeAllowed()
const = 0;
170 void validateElement(
const LookupKey
name)
const;
199 bool hasAttribute(
const QString &namespaceURI,
const QString &localName)
const;
205 inline bool hasAttribute(
const QString &localName)
const;
#define QT_END_NAMESPACE
This macro expands to.
const ElementDescription< TokenLookupClass, LookupKey >::Hash m_elementDescriptions
QXmlStreamAttributes m_currentAttributes
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
static bool isWhitespace(char c)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QStack< bool > m_stripWhitespace
QHash< LookupKey, ElementDescription< TokenLookupClass, LookupKey > > Hash
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
TokenType
This enum specifies the type of token the reader just read.
This file is included by qcastingplatform_p.h. If you need includes in this file, put them in Casttin...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The namespace for the internal API of QtXmlPatterns.
The QSourceLocation class identifies a location in a resource by URI, line, and column.
const QSet< typename TokenLookupClass::NodeName > m_standardAttributes
Base class for tokenizers that reads XML formats. This is XSLTTokenizer, and the W3C XML Schema parse...
The QXmlStreamAttributes class represents a vector of QXmlStreamAttribute.
bool m_hasHandledStandardAttributes
QSet< typename TokenLookupClass::NodeName > requiredAttributes
QSet< typename TokenLookupClass::NodeName > optionalAttributes
The QXmlStreamReader class provides a fast parser for reading well-formed XML via a simple streaming ...
A structure that lists the optional and required attributes of an element. Used with MaintainingReade...
The QIODevice class is the base interface class of all I/O devices in Qt.
TokenLookupClass::NodeName m_currentElementName
const ReportContext::Ptr m_context