|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CValueConvertExtension: public CInterface { public: CValueConvertExtension(); virtual ~CValueConvertExtension(); public: virtual bool ToBoolean( const XContext &pContext, const XValue &pValue) = 0; virtual CNumber ToNumber( const XContext &pContext, const XValue &pValue) = 0; virtual CString ToString( const XContext &pContext, const XValue &pValue) = 0; };
The abstract interface to value conversion handlers for extension XPath value types.
The library or application that supports extension XPath types
must supply a class derived from
CValueConvertExtension
that implements conversions from extension XPath value types to
the standard value types defined by XPath. Implementation of
a class derived from
CValueConvertExtension
is
usually provided as part of the
CXpathImplementation
class implementation.
CValue, CContext, CValueConvert, CXpathImplementation
Constructor/Destructor Summary | |
CValueConvertExtension
();
����������Constructs the extension value conversion handler. |
|
~CValueConvertExtension
();
����������Destroys the extension value conversion handler. |
Function Summary | |
bool
|
ToBoolean
(const XContext &pContext, const XValue &pValue);
����������Converts the value of the extension type to a boolean. |
CNumber
|
ToNumber
(const XContext &pContext, const XValue &pValue);
����������Converts the value of the extension type to a number. |
CString
|
ToString
(const XContext &pContext, const XValue &pValue);
����������Converts the value of the extension type to a string. |
Constructor/Destructor Detail |
CValueConvertExtension();
Constructs the extension value conversion handler.
virtual ~CValueConvertExtension();
Destroys the extension value conversion handler.
Function Detail |
virtual bool ToBoolean( const XContext &pContext, const XValue &pValue) = 0;
Converts the value of the extension type to a boolean.
pContext
- the XPath context that controls
conversionpValue
- the value to convertvirtual CNumber ToNumber( const XContext &pContext, const XValue &pValue) = 0;
Converts the value of the extension type to a number.
pContext
- the XPath context that controls
conversionpValue
- the value to convertvirtual CString ToString( const XContext &pContext, const XValue &pValue) = 0;
Converts the value of the extension type to a string.
pContext
- the XPath context that controls
conversionpValue
- the value to convert
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |