top | up | prev | next

XPathPrefixTest Class

Definition at line 271 of XPathExpr.hpp

Constructors

XPathPrefixTest(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

XPathPrefixTest Constructor

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

Definition at line 1504 of XPathExpr.cpp :
1504 : name(name_)
1505 {
1506 }


Declaration at line 274 of XPathExpr.hpp


Member Function Details

Select Member Function

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

Definition at line 1508 of XPathExpr.cpp
Declaration at line 275 of XPathExpr.hpp

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

Calls: sngxml::dom::Node::GetNodeType , sngxml::dom::Node::Prefix


ToDom Member Function

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

Definition at line 1537 of XPathExpr.cpp :
1538 {
1539     std::unique_ptr<dom::Element> element(new dom::Element(U"prefixTest"));
1540     element->SetAttribute(U"prefix"name);
1541     return std::unique_ptr<dom::Node>(element.release());
1542 }


Declaration at line 276 of XPathExpr.hpp

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


top | up | prev | next