top | up | prev | next

XPathTextNodeTest Class

Definition at line 243 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::XPathTextNodeTest::Select(Node * node, Axis axis) const override

Definition at line 1449 of XPathExpr.cpp :
1450 {
1451     return node->GetNodeType() == sngxml::dom::NodeType::textNode;
1452 }


Declaration at line 246 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::XPathTextNodeTest::ToDom() const override

Definition at line 1454 of XPathExpr.cpp :
1455 {
1456     std::unique_ptr<dom::Element> element(new dom::Element(U"textNodeTest"));
1457     return std::unique_ptr<dom::Node>(element.release());
1458 }


Declaration at line 247 of XPathExpr.hpp

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


top | up | prev | next