35 lines
1,015 B
C++
35 lines
1,015 B
C++
|
/*
|
||
|
* Copyright (c) 2001-2006
|
||
|
* DecisionSoft Limited. All rights reserved.
|
||
|
* Copyright (c) 2004-2006
|
||
|
* Progress Software Corporation. All rights reserved.
|
||
|
* Copyright (c) 2004-2006
|
||
|
* Oracle. All rights reserved.
|
||
|
*
|
||
|
* See the file LICENSE for redistribution information.
|
||
|
*
|
||
|
* $Id: AncestorAxis.hpp,v 1.9 2006/11/01 16:37:11 jpcs Exp $
|
||
|
*/
|
||
|
|
||
|
#ifndef _ANCESTORAXIS_HPP
|
||
|
#define _ANCESTORAXIS_HPP
|
||
|
|
||
|
#include <xqilla/axis/Axis.hpp>
|
||
|
|
||
|
/**
|
||
|
This class implements the AncestorAxis as defined in the XPath spec
|
||
|
*/
|
||
|
class XQILLA_API AncestorAxis : public Axis
|
||
|
{
|
||
|
public:
|
||
|
AncestorAxis(const LocationInfo *info, const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *contextNode, const Node *nodeObj,
|
||
|
const NodeTest *nodeTest, const AxisNodeFactory &factory = Axis::gNodeImplFactory);
|
||
|
const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *nextNode(DynamicContext *context);
|
||
|
std::string asString(DynamicContext *context, int indent) const;
|
||
|
private:
|
||
|
const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *ancestor_;
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|