Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CFunctionLibrary

class CFunctionLibrary: public CInterface {
public:
    CFunctionLibrary();
    virtual ~CFunctionLibrary();
public:
    virtual bool IsFunctionAvailable(
        const CString &strNamespaceUri,
        const CString &strLocalName) = 0;
    virtual XFunction FindFunction(
        const CString &strNamespaceUri,
        const CString &strLocalName) = 0;
    };

The abstract interface to XPath function libraries.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CFunction
Constructor/Destructor Summary
CFunctionLibrary ();
����������Constructs the function library.
~CFunctionLibrary ();
����������Destroys the function library.

Function Summary
bool IsFunctionAvailable (const CString &strNamespaceUri, const CString &strLocalName);
����������Tests whether a function with the given namespace URI and local name is available in this function library.
XFunction FindFunction (const CString &strNamespaceUri, const CString &strLocalName);
����������Looks up a function with the given namespace URI and local name in this function library.

Constructor/Destructor Detail

CFunctionLibrary

CFunctionLibrary();

Constructs the function library.

~CFunctionLibrary

virtual ~CFunctionLibrary();

Destroys the function library.

Function Detail

IsFunctionAvailable

virtual bool IsFunctionAvailable(
    const CString &strNamespaceUri,
    const CString &strLocalName) = 0;

Tests whether a function with the given namespace URI and local name is available in this function library.

Parameters:
strNamespaceUri - the namespace URI of a function
strLocalName - the local name of a function
Returns:
true if the function with the given namespace URI and local name is available in this function library; false otherwise

FindFunction

virtual XFunction FindFunction(
    const CString &strNamespaceUri,
    const CString &strLocalName) = 0;

Looks up a function with the given namespace URI and local name in this function library.

Parameters:
strNamespaceUri - the namespace URI of a function to look up
strLocalName - the local name of a function to look up
Returns:
the function with the given namespace URI and local name, or NULL if none was found

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.