Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CValueConvert

class CValueConvert {
public:
    CValueConvert(const XContext &pContext);
    ~CValueConvert();
public:
    bool ToBoolean(const XValue &pValue);
    CNumber ToNumber(const XValue &pValue);
    CString ToString(const XValue &pValue);
    };

The XPath value conversion engine.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CNumber, CValue, CContext
Constructor/Destructor Summary
CValueConvert (const XContext &pContext);
����������Constructs the value conversion handler.
~CValueConvert ();
����������Destroys the value conversion handler.

Function Summary
bool ToBoolean (const XValue &pValue);
����������Converts the given value to a boolean.
CNumber ToNumber (const XValue &pValue);
����������Converts the given value to a number.
CString ToString (const XValue &pValue);
����������Converts the given value to a string.

Constructor/Destructor Detail

CValueConvert

CValueConvert(const XContext &pContext);

Constructs the value conversion handler.

Parameters:
pContext - the evaluation context to be used by value conversion procedures

~CValueConvert

~CValueConvert();

Destroys the value conversion handler.

Function Detail

ToBoolean

bool ToBoolean(const XValue &pValue);

Converts the given value to a boolean.

Parameters:
pValue - the value to convert
Returns:
the conversion result

ToNumber

CNumber ToNumber(const XValue &pValue);

Converts the given value to a number.

Parameters:
pValue - the value to convert
Returns:
the conversion result

ToString

CString ToString(const XValue &pValue);

Converts the given value to a string.

Parameters:
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.