Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CValueConvertExtension

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.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
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

CValueConvertExtension();

Constructs the extension value conversion handler.

~CValueConvertExtension

virtual ~CValueConvertExtension();

Destroys the extension value conversion handler.

Function Detail

ToBoolean

virtual bool ToBoolean(
    const XContext &pContext, const XValue &pValue) = 0;

Converts the value of the extension type to a boolean.

Parameters:
pContext - the XPath context that controls conversion
pValue - the value to convert
Returns:
the conversion result

ToNumber

virtual CNumber ToNumber(
    const XContext &pContext, const XValue &pValue) = 0;

Converts the value of the extension type to a number.

Parameters:
pContext - the XPath context that controls conversion
pValue - the value to convert
Returns:
the conversion result

ToString

virtual CString ToString(
    const XContext &pContext, const XValue &pValue) = 0;

Converts the value of the extension type to a string.

Parameters:
pContext - the XPath context that controls conversion
pValue - the value to convert
Returns:
the conversion result

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.