Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CPathExpr

class CPathExpr: public CExpr {
public:
    CPathExpr(const XExpr &pBaseExpr);
    CPathExpr(bool bAbsolute);
    ~CPathExpr();
public:
    void AddStep(const XStepExpr &pStepExpr);
public:
    XValue Evaluate(const XContext &pContext);
    };

The XPath path expression.

The path expression conforms to to PathExpr syntax specified by XPath.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CContext, CExpr, CStepExpr
Constructor/Destructor Summary
CPathExpr (const XExpr &pBaseExpr);
����������Constructs the path expression based on a filter.
CPathExpr (bool bAbsolute);
����������Constructs the path expression based on a location path.
~CPathExpr ();
����������Destroys the path expression.

Function Summary
void AddStep (const XStepExpr &pStepExpr);
����������Adds a step expression to this path expression.
XValue Evaluate (const XContext &pContext);
����������Evaluates this path expression.

Constructor/Destructor Detail

CPathExpr

CPathExpr(const XExpr &pBaseExpr);

Constructs the path expression based on a filter.

This constructor creates the path expression started with the FilterExpr component defined in XPath.

Parameters:
pBaseExpr - the expression representing the FilterExpr component of this path expression

CPathExpr

CPathExpr(bool bAbsolute);

Constructs the path expression based on a location path.

This constructor creates the path expression conforming to the LocationPath syntax defined in XPath.

Returns:
true if the location path of this path expression is absolute; false otherwise

~CPathExpr

~CPathExpr();

Destroys the path expression.

Function Detail

AddStep

void AddStep(const XStepExpr &pStepExpr);

Adds a step expression to this path expression.

Parameters:
pStepExpr - the step expression to add

Evaluate

XValue Evaluate(const XContext &pContext);

Evaluates this path expression.

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.