top | up | prev | next

XPathPositionFunction Class

Definition at line 278 of XPathFunction.cpp

Constructors

XPathPositionFunction()

Member Functions

std::unique_ptr<XPathObject> Evaluate(XPathContext& context, std::vector<XPathObject*>& arguments) override

Constructor Details

XPathPositionFunction Constructor

sngxml::xpath::XPathPositionFunction::XPathPositionFunction()

Definition at line 285 of XPathFunction.cpp :
285 : XPathFunction(U"position"00)
286 {
287 }


Declaration at line 281 of XPathFunction.cpp


Member Function Details

Evaluate Member Function

std::unique_ptr<XPathObject > sngxml::xpath::XPathPositionFunction::Evaluate(XPathContext & context, std::vector<XPathObject *>& arguments) override

Definition at line 289 of XPathFunction.cpp :
290 {
291     if (!arguments.empty())
292     {
293         throw std::runtime_error("sngxml::xpath::position() function requires no arguments");
294     }
295     return std::unique_ptr<XPathObject>(new XPathNumber(context.Position()));
296 }


Declaration at line 282 of XPathFunction.cpp

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

Calls: sngxml::xpath::XPathContext::Position


top | up | prev | next