top | up | prev | next

XPathNameTest Class

Definition at line 281 of XPathExpr.hpp

Constructors

XPathNameTest(const std::u32string& name_)

Member Functions

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

Member Variables

std::u32string name

Constructor Details

XPathNameTest Constructor

sngxml::xpath::XPathNameTest::XPathNameTest(const std::u32string& name_)

Definition at line 1544 of XPathExpr.cpp :
1544 : name(name_)
1545 {
1546 }


Declaration at line 284 of XPathExpr.hpp


Member Function Details

Select Member Function

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

Definition at line 1548 of XPathExpr.cpp
Declaration at line 285 of XPathExpr.hpp

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

Calls: sngxml::dom::Node::GetNodeType , sngxml::dom::Node::Name


ToDom Member Function

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

Definition at line 1575 of XPathExpr.cpp :
1576 {
1577     std::unique_ptr<dom::Element> element(new dom::Element(U"nameTest"));
1578     element->SetAttribute(U"name"name);
1579     return std::unique_ptr<dom::Node>(element.release());
1580 }


Declaration at line 286 of XPathExpr.hpp

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


top | up | prev | next