zorba::ExternalModule

#include <zorba/external_module.h>

An external module represents a group of external functions, all belonging to the same target namespace. Class ExternalModule provides the interface for retrieving the target namespace URI and/or the implementation of each contained external function by function name.An external module can be a library module by itself, or be a component of a library module.Instances of this class must be implemented by the application and provide storage for the implementations of the external functions. The instances must be registered in the static context in order for the functions to be accessible by a query (see here for more details.).

Public Functions

void

destroy()

Function used for destroying the ExternalModule object passed as parameter.

ExternalFunction *

getExternalFunction(const String &aLocalname)=0

String

getURI() const =0

~ExternalModule()

Public Functions

destroy

void destroy()

Function used for destroying the ExternalModule object passed as parameter.

The user needs to override this function if the module passed as parameter was created using the createModule function which is used for dynamically loading modules from a shared library.

getExternalFunction

ExternalFunction * getExternalFunction(const String &aLocalname)=0

Returns

the implementation of the function with the given name.

getURI

String getURI() const =0

Returns

the target namespace URI of the module.

~ExternalModule

 ~ExternalModule()