|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CNodeTest: public CInterface { public: enum { wildcard, namespaceWildcard, name, comment, text, processingInstruction, processingInstructionTarget, node }; public: CNodeTest(); virtual ~CNodeTest(); public: virtual int GetType() = 0; virtual bool Evaluate( const XContext &pContext, const XNode &pNode) = 0; virtual CString GetLocalName(); };
The abstract interface to XPath node tests.
Every node test object is assigned a certain type. Allowed type codes are specified using the anonymous enumeration in the declaration of this class.
CContext, Dom::INode
Constructor/Destructor Summary | |
CNodeTest
();
����������Constructs the node test. |
|
~CNodeTest
();
����������Destroys the node test. |
Function Summary | |
int
|
GetType
();
����������Returns the type of this node test. |
bool
|
Evaluate
(const XContext &pContext, const XNode &pNode);
����������Evaluates this node test for the given node in the given context. |
CString
|
GetLocalName
();
����������Returns the local name associated with this node test. |
Constructor/Destructor Detail |
CNodeTest();
Constructs the node test.
virtual ~CNodeTest();
Destroys the node test.
Function Detail |
virtual int GetType() = 0;
Returns the type of this node test.
virtual bool Evaluate( const XContext &pContext, const XNode &pNode) = 0;
Evaluates this node test for the given node in the given context.
pContext
- the evaluation contextpNode
- the node to which
this node test is to be appliedtrue
if this node test is
satisfied for the given node in the given context;
false
otherwisevirtual CString GetLocalName();
Returns the local name associated with this node test.
CNodeTest::name
;
the empty string otherwise
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |