Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CStepExpr

class CStepExpr: public CExpr {
public:
    CStepExpr(const XAxis &pAxis, const XNodeTest &pNodeTest);
    ~CStepExpr();
public:
    void AddPredicate(const XPredicate &pPredicate);
    int GetAxisType();
    XAxis GetAxis();
    XNodeTest GetNodeTest();
    int GetPredicateCount();
    XPredicate GetPredicate(int nIndex);
public:
    XValue Evaluate(const XContext &pContext);
    };

The XPath location step.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CValue, CAxis, CNodeTest, CPredicate
Constructor/Destructor Summary
CStepExpr (const XAxis &pAxis, const XNodeTest &pNodeTest);
����������Constructs the location step.
~CStepExpr ();
����������Destroys the location step.

Function Summary
void AddPredicate (const XPredicate &pPredicate);
����������Adds the predicate to the end of the list of predicates of this location setp.
int GetAxisType ();
����������Returns the type of the axis of this location step.
XAxis GetAxis ();
����������Returns the axis of this location step.
XNodeTest GetNodeTest ();
����������Returns the node test of this location step.
int GetPredicateCount ();
����������Returns the number of predicates in this location step.
XPredicate GetPredicate (int nIndex);
����������Returns the predicate at the given index in this location step.
XValue Evaluate (const XContext &pContext);
����������Evaluates the expression represented by this location step.

Constructor/Destructor Detail

CStepExpr

CStepExpr(const XAxis &pAxis, const XNodeTest &pNodeTest);

Constructs the location step.

Parameters:
pAxis - the axis of this location step
pNodeTest - the node test of this location step

~CStepExpr

~CStepExpr();

Destroys the location step.

Function Detail

AddPredicate

void AddPredicate(const XPredicate &pPredicate);

Adds the predicate to the end of the list of predicates of this location setp.

Parameters:
pPredicate - the predicate to add

GetAxisType

int GetAxisType();

Returns the type of the axis of this location step.

Returns:
the type of the axis of this location step

GetAxis

XAxis GetAxis();

Returns the axis of this location step.

Returns:
the axis of this location step

GetNodeTest

XNodeTest GetNodeTest();

Returns the node test of this location step.

Returns:
the node test of this location step

GetPredicateCount

int GetPredicateCount();

Returns the number of predicates in this location step.

Returns:
the number of predicates in this location step

GetPredicate

XPredicate GetPredicate(int nIndex);

Returns the predicate at the given index in this location step.

Parameters:
nIndex - the zero-based index
Returns:
the predicate at the given index in this location step

Evaluate

XValue Evaluate(const XContext &pContext);

Evaluates the expression represented by this location step.

Parameters:
pContext - the evaluation context
Returns:
the value obtained as the result of evaluation

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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