XmlResolver::resolveExternalFunction

#include <DbXml.hpp>

virtual XmlExternalFunction *XmlResolver::resolveExternalFunction(
    XmlTransaction *txn, XmlManager &mgr, const std::string &uri,
    const std::string &name, size_t numberOfArgs) const

When implemented this method resolves a unigue combination of function URI, function name and number of arguments into an instance of XmlExternalFunction used to implement an XQuery extension function. If the URI, name and arguments cannot be resolved NULL is returned. It may return a singleton or a new instance. Memory management of the returned object depends on the implementation of the XmlResolver and the XmlExternalFunction instance. Singletons are usually owned by XmlResolver while new instances must be deleted by XmlExternalFunction::close().

Parameters

txn

If a transaction is in force, a pointer to the XmlTransaction object; otherwise, NULL.

mgr

The XmlManager object associated with the operation.

uri

The URI of the XQuery function being resolved.

name

The string name of the XQuery function being resolved.

numberOfArgs

The number of arguments passed to the XQuery function being resolved.

Class

XmlResolver

See Also

XmlResolver Methods