|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CValueCompareExtension: public CInterface { public: CValueCompareExtension(); virtual ~CValueCompareExtension(); public: virtual bool NodeSetToValue( const XContext &pContext, int nOp, const XValue &pValue1, const XValue &pValue2) = 0; virtual bool ValueToNodeSet( const XContext &pContext, int nOp, const XValue &pValue1, const XValue &pValue2) = 0; };
The abstract interface to value comparison handlers for extension XPath value types.
The library or application that supports extension XPath types
must supply a class derived from
CValueCompareExtension
that implements comparison of extension XPath value types with
XPath node-set values. Implementation of
a class derived from
CValueCompareExtension
is
usually provided as part of the
CXpathImplementation
class implementation.
CValue, CContext, CValueCompare, CXpathImplementation
Constructor/Destructor Summary | |
CValueCompareExtension
();
����������Constructs the extension value comparison handler. |
|
~CValueCompareExtension
();
����������Destroys the extension value comparison handler. |
Function Summary | |
bool
|
NodeSetToValue
(const XContext &pContext, int nOp, const XValue &pValue1, const XValue &pValue2);
����������Compares the XPath node-set value to the value of the extension type. |
bool
|
ValueToNodeSet
(const XContext &pContext, int nOp, const XValue &pValue1, const XValue &pValue2);
����������Compares the value of the extension type to the XPath node-set value. |
Constructor/Destructor Detail |
CValueCompareExtension();
Constructs the extension value comparison handler.
virtual ~CValueCompareExtension();
Destroys the extension value comparison handler.
Function Detail |
virtual bool NodeSetToValue( const XContext &pContext, int nOp, const XValue &pValue1, const XValue &pValue2) = 0;
Compares the XPath node-set value to the value of the extension type.
The code of the comparison operation must be supplied as
a parameter to this function. Operation codes
are defined in the anonymous enumeration of
CValueCompare
class declaration.
pContext
- the XPath context
that controls comparisonnOp
- the code of the comparison operationpValue1
- the node-set value to comparepValue2
- the extension value to comparetrue
if the result of comparison is true;
false
otherwisevirtual bool ValueToNodeSet( const XContext &pContext, int nOp, const XValue &pValue1, const XValue &pValue2) = 0;
Compares the value of the extension type to the XPath node-set value.
The code of the comparison operation must be supplied as
a parameter to this function. Operation codes
are defined in the anonymous enumeration of
CValueCompare
class declaration.
pContext
- the XPath context
that controls of comparisonnOp
- the code of the comparison operationpValue1
- the extension value to comparepValue2
- the node-set value to compare
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |