35 lines
1 KiB
C++
35 lines
1 KiB
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: AncestorOrSelfAxis.hpp,v 1.9 2006/11/01 16:37:11 jpcs Exp $
|
|
*/
|
|
|
|
#ifndef _ANCESTORORSELFAXIS_HPP
|
|
#define _ANCESTORORSELFAXIS_HPP
|
|
|
|
#include <xqilla/axis/Axis.hpp>
|
|
|
|
/**
|
|
This class implements the AncestorOrSelf axis as defined by the XPath spec
|
|
*/
|
|
class XQILLA_API AncestorOrSelfAxis : public Axis
|
|
{
|
|
public:
|
|
AncestorOrSelfAxis(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
|
|
|