Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CAxis

class CAxis: public CInterface {
public:
    enum {
        child,
        descendant,
        parent,
        ancestor,
        followingSibling,
        precedingSibling,
        following,
        preceding,
        attribute,
        _namespace,
        self,
        descendantOrSelf,
        ancestorOrSelf
        };
public:
    CAxis();
    virtual ~CAxis();
public:
    virtual int GetType() = 0;
    virtual XNodeSet Select(const XNode &pContextNode) = 0;
    };

The abstract interface to XPath axes.

Every axis object is assigned a certain type. Allowed type codes are specified using the anonymous enumeration in the declaration of this class.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CNodeSet, Dom::INode
Constructor/Destructor Summary
CAxis ();
����������Constructs the axis.
~CAxis ();
����������Destroys the axis.

Function Summary
int GetType ();
����������Returns the type of this axis.
XNodeSet Select (const XNode &pContextNode);
����������Selects nodes that belong to this axis.

Constructor/Destructor Detail

CAxis

CAxis();

Constructs the axis.

~CAxis

virtual ~CAxis();

Destroys the axis.

Function Detail

GetType

virtual int GetType() = 0;

Returns the type of this axis.

Returns:
the type of this axis

Select

virtual XNodeSet Select(const XNode &pContextNode) = 0;

Selects nodes that belong to this axis.

Parameters:
pContextNode - the evaluation context
Returns:
the node-set that represents the node list containing selected nodes. Ordering of nodes in the result node list depends on the type of this axis.

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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