Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CValueCompare

class CValueCompare {
public:
    enum {
        equal,
        notEqual,
        less,
        greater,
        lessOrEqual,
        greaterOrEqual
        };
public:
    CValueCompare(const XContext &pContext);
    ~CValueCompare();
public:
    bool Compare(
        int nOp, const XValue &pValue1, const XValue &pValue2);
    };

The XPath value comparison engine.

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

Function Summary
bool Compare (int nOp, const XValue &pValue1, const XValue &pValue2);
����������Applies the given comparison operation to the pair of values.

Constructor/Destructor Detail

CValueCompare

CValueCompare(const XContext &pContext);

Constructs the value comparison handler.

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

~CValueCompare

~CValueCompare();

Destroys the value comparison handler.

Function Detail

Compare

bool Compare(
    int nOp, const XValue &pValue1, const XValue &pValue2);

Applies the given comparison operation to the pair of values.

The comparison operation code must be supplied. Operation codes are defined by the anonymous enumeration in this class declaration.

Parameters:
nOp - the comparison operation code
pValue1 - the first operand
pValue2 - the second operand
Returns:
true if the result of comparison is true; false otherwise

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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