top | up | prev | next

XPathPINodeTest Class

Definition at line 250 of XPathExpr.hpp

Member Functions

bool Select(Node* node, Axis axis) const override
std::unique_ptr<Node> ToDom() const override

Member Function Details

Select Member Function

bool sngxml::xpath::XPathPINodeTest::Select(Node * node, Axis axis) const override

Definition at line 1460 of XPathExpr.cpp :
1461 {
1462     return node->GetNodeType() == sngxml::dom::NodeType::processingInstructionNode;
1463 }


Declaration at line 253 of XPathExpr.hpp

Base class overridden functions: sngxml::xpath::XPathNodeTestExpr::Select

Calls: sngxml::dom::Node::GetNodeType


ToDom Member Function

std::unique_ptr<Node > sngxml::xpath::XPathPINodeTest::ToDom() const override

Definition at line 1465 of XPathExpr.cpp :
1466 {
1467     std::unique_ptr<dom::Element> element(new dom::Element(U"piNodeTest"));
1468     return std::unique_ptr<dom::Node>(element.release());
1469 }


Declaration at line 254 of XPathExpr.hpp

Base class overridden functions: sngxml::xpath::XPathExpr::ToDom


top | up | prev | next