top | up | prev | next

XPathLiteral Class

Definition at line 300 of XPathExpr.hpp

Constructors

XPathLiteral(const std::u32string& value_)

Member Functions

std::unique_ptr<XPathObject> Evaluate(XPathContext& context) override
std::u32string TextValue() const override
std::unique_ptr<Node> ToDom() const override

Member Variables

std::u32string value

Constructor Details

XPathLiteral Constructor

sngxml::xpath::XPathLiteral::XPathLiteral(const std::u32string& value_)

Definition at line 1593 of XPathExpr.cpp :
1593 : value(value_)
1594 {
1595 }


Declaration at line 303 of XPathExpr.hpp


Member Function Details

Evaluate Member Function

std::unique_ptr<XPathObject > sngxml::xpath::XPathLiteral::Evaluate(XPathContext & context) override

Definition at line 1597 of XPathExpr.cpp :
1598 {
1599     return std::unique_ptr<XPathObject>(new XPathString(value));
1600 }


Declaration at line 305 of XPathExpr.hpp

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


TextValue Member Function

std::u32string sngxml::xpath::XPathLiteral::TextValue() const override

Definition at line 304 of XPathExpr.hpp :
304 { return value; }

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


ToDom Member Function

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

Definition at line 1602 of XPathExpr.cpp :
1603 {
1604     std::unique_ptr<dom::Element> element(new dom::Element(U"literal"));
1605     element->SetAttribute(U"value"value);
1606     return std::unique_ptr<dom::Node>(element.release());
1607 }


Declaration at line 306 of XPathExpr.hpp

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


top | up | prev | next