top | up | prev | next

XPathCommentNodeTest Class

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

Definition at line 1438 of XPathExpr.cpp :
1439 {
1440     return node->GetNodeType() == sngxml::dom::NodeType::commentNode;
1441 }


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

Definition at line 1443 of XPathExpr.cpp :
1444 {
1445     std::unique_ptr<dom::Element> element(new dom::Element(U"commentNodeTest"));
1446     return std::unique_ptr<dom::Node>(element.release());
1447 }


Declaration at line 240 of XPathExpr.hpp

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


top | up | prev | next