20#ifndef _QUERYPATHTREEFILTER_HPP
21#define _QUERYPATHTREEFILTER_HPP
27#include <xercesc/framework/XMLBuffer.hpp>
30typedef std::vector<const QueryPathNode *>
QPNVector;
41 virtual void startElementEvent(
const XMLCh *prefix,
const XMLCh *uri,
const XMLCh *localname);
42 virtual void endElementEvent(
const XMLCh *prefix,
const XMLCh *uri,
const XMLCh *localname,
43 const XMLCh *typeURI,
const XMLCh *typeName);
44 virtual void piEvent(
const XMLCh *target,
const XMLCh *value);
46 virtual void textEvent(
const XMLCh *chars,
unsigned int length);
48 virtual void attributeEvent(
const XMLCh *prefix,
const XMLCh *uri,
const XMLCh *localname,
const XMLCh *value,
49 const XMLCh *typeURI,
const XMLCh *typeName);
54 StackEntry() : matched(false), nonElementChildren(false), attrChildren(false), children() {}
59 XERCES_CPP_NAMESPACE_QUALIFIER XMLBuffer
prefix;
60 XERCES_CPP_NAMESPACE_QUALIFIER XMLBuffer
uri;
std::vector< const QueryPathNode * > QPNVector
Definition: QueryPathTreeFilter.hpp:30
Definition: EventHandler.hpp:68
Definition: EventHandler.hpp:30
Definition: QueryPathTreeFilter.hpp:33
void checkAncestors(FilterStack::reverse_iterator s)
virtual void piEvent(const XMLCh *target, const XMLCh *value)
Handles a processing instruction node as an event.
std::vector< StackEntry * > FilterStack
Definition: QueryPathTreeFilter.hpp:70
virtual void attributeEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *value, const XMLCh *typeURI, const XMLCh *typeName)
Handles an attribute node as an event.
virtual void commentEvent(const XMLCh *value)
Handles a comment node as an event.
virtual ~QueryPathTreeFilter()
virtual void endElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname, const XMLCh *typeURI, const XMLCh *typeName)
Handles the end of an element node as an event.
QueryPathTreeFilter(const QPNVector &qpns, EventHandler *next)
virtual void textEvent(const XMLCh *value)
Handles a text node as an event.
virtual void endDocumentEvent()
Handles a document node as an event.
virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding)
Handles a document node as an event.
FilterStack stack_
Definition: QueryPathTreeFilter.hpp:74
virtual void textEvent(const XMLCh *chars, unsigned int length)
Handles a text node as an event.
virtual void startElementEvent(const XMLCh *prefix, const XMLCh *uri, const XMLCh *localname)
Handles the start of an element node as an event.
QueryPathTreeFilter(const QueryPathNode *qpn, EventHandler *next)
virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri)
Handles a namespace binding as an event.
Definition: QueryPathTreeFilter.hpp:53
bool attrChildren
Definition: QueryPathTreeFilter.hpp:66
bool matched
Definition: QueryPathTreeFilter.hpp:63
bool nonElementChildren
Definition: QueryPathTreeFilter.hpp:65
xercesc::XMLBuffer uri
Definition: QueryPathTreeFilter.hpp:60
void addChildren(const QueryPathNode *isn)
QPNVector children
Definition: QueryPathTreeFilter.hpp:67
void addNode(const QueryPathNode *isn)
xercesc::XMLBuffer localname
Definition: QueryPathTreeFilter.hpp:61
xercesc::XMLBuffer prefix
Definition: QueryPathTreeFilter.hpp:59
StackEntry()
Definition: QueryPathTreeFilter.hpp:54