50 , m_pathCount(paths.count())
53 , m_receiver(receiver)
56 "Using DocumentProjector with no paths is an " 57 "overhead and has also undefined behavior.");
80 "We're not supposed to receive Keep here, because " 81 "endElement() should always end that state.");
153 "We're not supposed to be in a Move action here.");
183 "Invalid input; it's the caller's responsibility to ensure the input is correct.");
196 "Invalid input; it's the caller's responsibility to ensure the input is correct.");
QBool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
virtual void startDocument()
virtual void namespaceBinding(const QXmlName nb)
A push interface for the XPath Data Model. Similar to SAX's ContentHandler.
#define QT_END_NAMESPACE
This macro expands to.
virtual void characters(const QString &value)
int count(const T &t) const
Returns the number of occurrences of value in the vector.
virtual void attribute(const QXmlName name, const QString &value)
Signals the presence of an attribute node.
virtual void endElement()
Signals the end of the current element.
virtual void startElement(const QXmlName name)=0
Signals the start of an element by name name.
The QString class provides a Unicode character string.
virtual void endElement()=0
Signals the end of the current element.
virtual void endDocument()
virtual void processingInstruction(const QXmlName name, const QString &value)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QAbstractXmlReceiver *const m_receiver
The namespace for the internal API of QtXmlPatterns.
ProjectedExpression::Vector m_paths
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
virtual Action actionForElement(const QXmlName name, ProjectedExpression::Ptr &next) const
const T & at(int i) const
Returns the item at index position i in the vector.
#define Q_ASSERT_X(cond, where, what)
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
Represents an item in the XPath 2.0 Data Model.
virtual void item(const Item &item)
Sends an Item to this QAbstractXmlReceiver that may be a QXmlNodeModelIndex or an AtomicValue...
virtual void comment(const QString &value)
virtual void startElement(const QXmlName name)
Signals the start of an element by name name.
ProjectedExpression::Action m_action
DocumentProjector(const ProjectedExpression::Vector &paths, QAbstractXmlReceiver *const receiver)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...