|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CDocumentFactory: public CInterface { public: CDocumentFactory(); virtual ~CDocumentFactory(); public: virtual XDocument CreateDocument() = 0; virtual XDocument CreateDocument( const CString &strImplementation) = 0; };
The factory for DOM documents.
This class represents an abstract interface to DOM document factories. Applications are required to provide implementation of this class.
An application must supply an object of this class
when the the DOM Extension is registered with
the ECMAScript interpreter by
CDomExtension::Register
function.
Functions of the document factory
are called when creation of a new DOM document is
requested by an ECMAScript program.
A document factory may support one or more DOM implementations, one of which must be designated as the default. Each DOM implementation must have the unique name. When creation of a new DOM document is requested, the name of the required DOM implementation may be supplied; if this name is omitted, the default DOM implementation is assumed.
Dom::IDocument
Constructor/Destructor Summary | |
CDocumentFactory
();
����������Constructs the document factory. |
|
~CDocumentFactory
();
����������Destroys the document factory. |
Function Summary | |
XDocument
|
CreateDocument
();
����������Creates a new document using the default DOM implementation. |
XDocument
|
CreateDocument
(const CString &strImplementation);
����������Creates a new document using the specified DOM implementation. |
Constructor/Destructor Detail |
CDocumentFactory();
Constructs the document factory.
virtual ~CDocumentFactory();
Destroys the document factory.
Function Detail |
virtual XDocument CreateDocument() = 0;
Creates a new document using the default DOM implementation.
virtual XDocument CreateDocument( const CString &strImplementation) = 0;
Creates a new document using the specified DOM implementation.
strImplementation
- the name of
the DOM implementation
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |